NAME
suidregister - Set special permissions on a file or directory and register it
SYNOPSIS
suidregister [ -s package ] file user group mode
DESCRIPTION
suidregister enters a file or directory into the /etc/suid.conf file and sets permissions. It is intended to be used from package installation scripts with the -s options and from the administrator without it. If the file is already registered, the old entry is removed, unless a package is attempting to set the permissions for a file the administrator has specified permissions for that file.
file is the absolute path of the file or directory to be registered. user is the user that should own the file. It can be either the name or the numeric ID. group is the group that should own the file. It too can be either the name or the numeric ID. mode are the permissions for the file, in octal format.
Calling suidregister without any arguments will simply verify that all the settings are the way indicated in the config file. It gives warnings and corrects each file or directory that is not set up correctly.
OPTIONS
- -s package
-
Standard settings for a package. This option must always be given if a package installs a binary or directory needing special mode settings. It should only be used in package installation scripts.
EXAMPLE
The postinst of sendmail could do the following:
suidregister -s sendmail /usr/bin/sendmail root mail 2755 suidregister -s sendmail /var/spool/mail root mail 3775
FILES
/etc/suid.conf the suidmanager registry
SEE ALSO
suidunregister(8), suid.conf(5)
AUTHOR
Originally written by Christoph Lameter <[email protected]>. Now maintained by Adam Klein <[email protected]>.