Element: <permissions>


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

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


The permissions element 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 option child-element provides a means to pass an option to the chmod command.

[Note] Note

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

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

The base attribute allows you to specify the directory in which the operation will be performed. For a better description, see Element : <base>.

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


<permissions mode="755">

The equivalent bash script is :

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