---
name: "suidregister"
section: "8"
platform: "linux"
package: "suidmanager"
version: "0.43.2"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/suidregister"
---

# suidregister(8)

Set special permissions on a file or directory and register it

## 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)](/suidunregister/8.md), suid.[*conf*(5)](/conf/5.md)

## AUTHOR

Originally written by Christoph Lameter \<clameter@debian.org\>. Now maintained by Adam Klein \<aklein@debian.org\>.
