OS4X plugin os4xplugin permission

From OS4X
Revision as of 09:03, 29 July 2024 by Admin (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Purpose

Change the permissions, owner and group of every file of the OS4X Enterprise job.

Requirements

  • File /etc/os4x.conf or 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.

Return codes

  • 0: everything OK
  • 1: Number of parameters != 1; Config file /etc/os4x.conf not found; Config in database not readable; License not valid; XML file invalid