cdmntsuppl - Sets and gets administrative CD-ROM features
To get current settings for features on the mounted CD-ROM:
To set features for files and directories that have a restricted final Extended Attribute Record (XAR) or no final XAR:
/usr/sbin/cdmntsuppl [-u owner] [-g group] [-F mode] [-D mode] [-c | [-l] [-m]] mount_point
To set features for files and directories that have an unrestricted XAR:
/usr/sbin/cdmntsuppl [-U umfile] [-G gmfile] [-c | [-l] [-m]] [-x | -s] mount_point
Causes names to be handled as recorded on the CD-ROM; that is, no conversion takes place. This is the default behavior. The -c flag undoes the conversions performed by the -l and -m flags. Sets the default read and search permissions for directories. The permissions are changed according to mode, which may be expressed (as with the chmod command) either octally or symbolically.
|0400||read by owner|
|0100||execute by owner|
|0040||read by group|
|0010||execute by group|
|0004||read by others|
|0001||execute by others|
Specifies the mount point of the CD-ROM file system being accessed.
The cdmntsuppl command sets up administrative CD-ROM features, such as default ownership and access permissions, mapping of user and group identifications, conversions of file names, and the setting of execute permissions for directories.
Setting CD-ROM features is restricted to users with the appropriate privileges. Note that you must be superuser to change administrative features; to read the current settings, you must have read permission on the mount point of the selected CD-ROM file system. This command is intended to be used to set CD-ROM features directly after the CD-ROM is mounted and before its files and directories are accessed. Attempting to use this function to set CD-ROM features after files or directories on the CD-ROM have been accessed may produce unpredictable results.
Executing the command with no flags lists the current settings on the mounted CD-ROM.
When the command includes flags to set features, the new setting is echoed to the screen if the command completes successfully. The command's flags are designed to be used in specific combinations, as described in the following list: The -l and -m flags perform name conversions of File and Directory Identifiers on a CD-ROM, which can be undone with the -c flag. Note that whereas the -l and -m flags can be used together, the -c must be used only by itself, since it undoes the conversions the other two perform. The -u, -g, -F, and -D flags set the default owner, group, and access permissions for the files and directories that have a restricted final Extended Attribute Record (XAR) or no final XAR. The -U and -G flags are used to change user and group ownership on a CD-ROM file system with an unrestricted XAR. Note that the ISO 9660 standard does not permit a UID or GID of zero to appear in an unrestricted XAR. Placing a zero value in a UID or GID of an unrestricted XAR may result in unpredictable behavior. The -x and -s flags, which are mutually exclusive, set the execute (search) permissions for those directories in the CD-ROM file system hierarchy that have a unrestricted final XAR.
The cdmntsuppl command returns the following exit values: The command was successful. The named mount_point was not found or was not within the CD-ROM hierarchy, or access permission was denied. The mount() system call that was executed by the command returned an error. One cause of this error is that the user did not have the appropriate privileges to perform the mount operation. Too many mappings. Parameter error or bad format in the mapping file (file specified by the umfile or gmfile parameters).
Functions: mount(2), cd_defs(3), cd_idmap(3), cd_nmconv(3). delim off