Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Setuid
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==File modes== The <code>setuid</code> and <code>setgid</code> bits are normally represented as the values 4 for <code>setuid</code> and 2 for <code>setgid</code> in the high-order octal digit of the file mode. For example, <code>6711</code> has both the <code>setuid</code> and <code>setgid</code> bits ({{nowrap|4 + 2 {{=}} 6}}) set, and also the file read/write/executable for the owner (7), and executable by the group (first 1) and others (second 1). Most implementations have a symbolic representation of these bits; in the previous example, this could be <code>u=rwx,go=x,ug+s</code>. Typically, <code>chmod</code> does not have a recursive mode restricted to directories, so modifying an existing directory tree must be done manually, with a command such as {{code|find /path/to/directory -type d -exec chmod g+s '{}' '\'|sh}}.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)