CHMOD(1) CHMOD(1)
chmod -
chmod [options] mode file...
POSIX : [-R]
GNU (): [-cfvR] [--reference=file] [--help] [--version] [--]
chmod
file
mode
8
`[ugoa...][[+-=][rwxXstugo...]...][,...]'
0 `ugoa' ; : (u)
(: ) (g)
(: ) (o)
(a) `a' `ugo' `a' umask
`+' ; `-' ; `='
`rwxXstugo' : (r)
(w) () (x)
(X)
ID (s)sticky bit (t)
(u) (g)
(o) (`chmod g-s file' set-group-ID (sgid) `chmod ug+s file' suid
sgid `chmod o+s file' )
POSIX `sticky bit' :
( /tmp )
chmod
chmod
chmod
chmod
-R
-c, --changes
file
-f, --silent, --quiet
-v, --verbose
file
-R, --recursive
--reference=file
mode file
--help
--version
--
16
8 ( 8)
8 ; C 0 mode 0055 55
mode
0
OR
1000
2000 ID
4000 ID
UID (u+)
100
200
400
(g+)
10
20
40
(o+)
1
2
4
LANG, LC_ALL, LC_CTYPE, LC_MESSAGES
POSIX 1003.2 -R
't'
chmod suid sgid
chmod `s'
`t'
Linux System V (System V Interface Definition (SVID) Version 3 )
sgid
(mandatory locking)
/usr/src/linux/Documentation/mandatory.txt
fileutils-4.1 chmod
aeb [AT] cwi.nl, aw [AT] mail1.fi, ragnar [AT] ragnar-hojland.com
bug-fileutils [AT] gnu.org
GNU fileutils 4.1 18 June 2002 CHMOD(1)