Difference between revisions of "OS4X plugin os4xplugin permission"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
 (Created page with "Category:Plugins  == Purpose == Change the permissions, owner and group of every file of the OS4X Enterprise job.  == Requirements == * File <code>/etc/os4x.conf</code> or...")  | 
				|||
| Line 11: | Line 11: | ||
*chown: User name of the target user  | *chown: User name of the target user  | ||
*chgrp: Group name of the target group for the file.  | *chgrp: Group name of the target group for the file.  | ||
| + | *Change permissions of job directory, too: As indicated, the job directory can change the permissions, owner and group to the configured value, too.  | ||
== Return codes ==  | == Return codes ==  | ||
*0: everything OK  | *0: everything OK  | ||
*1: Number of parameters != 1; Config file <code>/etc/os4x.conf</code> not found; Config in database not readable; License not valid; XML file invalid  | *1: Number of parameters != 1; Config file <code>/etc/os4x.conf</code> not found; Config in database not readable; License not valid; XML file invalid  | ||
Latest revision as of 07:52, 14 April 2025
Purpose
Change the permissions, owner and group of every file of the OS4X Enterprise job.
Requirements
- File 
/etc/os4x.confor configuration file referenced by environment variable$OS4X_CFGFILE. The temporary directory and the license file are obtained via the database that is configured here. 
Configuration
- chmod: Octal mode of the permissions of the file(s) (i.e. 755, 644, 600 etc.)
 - chown: User name of the target user
 - chgrp: Group name of the target group for the file.
 - Change permissions of job directory, too: As indicated, the job directory can change the permissions, owner and group to the configured value, too.
 
Return codes
- 0: everything OK
 - 1: Number of parameters != 1; Config file 
/etc/os4x.confnot found; Config in database not readable; License not valid; XML file invalid