Element: <permissions>

Syntax

<!ELEMENT permissions    (option?, name+)>
<!ATTLIST permissions
          base           CDATA #IMPLIED
          mode           CDATA #REQUIRED>

See also : Element: <option> | Element: <name>

Description

The element permissions is one of the top-level operation elements. It allows you to change the permissions of a (set of) file(s) or directory(ies).

The sub-element option provides a means to pass an option to the chmod command.

[Note] Note

Not all of the chmod options are in every implementation. Refer to the documentation for your implementation to determine what options are available.

The sub-element(s) name contain the name(s) of the files whose permission is to be modified. See Element: <name>.

The attribute base gives the name of the directory in which the command will be performed. See Element : <base>.

The attribute mode gives the new access mode, as used in the command chmod.

The only option supported is "recursive"

Examples

<permissions mode="755">
        <name>/usr/bin/lex</name>
</permissions>

The equivalent bash script is :

echo Changing permissions of /usr/bin/lex to 755
chmod 755 /usr/bin/lex