Bourne | Ash |  #!  | find | ARG_MAX | Shells | whatshell | portability | permissions | UUOC | ancient | - | ../Various | HOME
"$@" | echo/printf | set -e | test | tty defs | tty chars | $() vs ) | IFS | using siginfo | nanosleep | line charset | locale


Special Usage (overloading) of Permission Bits on various Unix flavours

apart from read/write/execute. So it's about:

S_ISUID   04000 set user ID on execution
S_ISGID   02000 set group ID on execution
S_ISVTX   01000 sticky bit
See also chmod(2).

The sticky bit in /tmp is well known. But then I heard of more special meanings and became curious.

2011-12-28 (see recent changes)

By the way: did you know that the setuid bit was patented? (Pt. no 4135240, see f.i. the USPTO search)


1. Files

set uid (without execute by user)

set gid (without execute by group)

sticky bit


2. Directories

set uid

set gid

sticky bit


<http://www.in-ulm.de/~mascheck/various/permissions/>