[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
LinuxShellCommandsCHMOD
CHMOD
A *nix utility and made accessible to C and C++ through a (?which?) library. This utility will change the ?permission ?flags on a file. ?Permissions are made up by adding together the different codes that stand for read, write, and execute. The first bit is special and will set special permissions such as: setuid on execution, setgid on execution and ?sticky bit.
--Some Content from freeBSD 4.7 man pages
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
LinuxShellCommandsCHMOD
CHMOD
A *nix utility and made accessible to C and C++ through a (?which?) library. This utility will change the ?permission ?flags on a file. ?Permissions are made up by adding together the different codes that stand for read, write, and execute. The first bit is special and will set special permissions such as: setuid on execution, setgid on execution and ?sticky bit.
Permission List:
4000 Executable files with
this bit set will run with effective uid set to the uid of
the file owner. Directories with the set-user-id bit set
will force all files and sub-directories created in them to
be owned by the directory owner and not by the uid of the
creating process, if the underlying file system supports
this feature
2000 Executable files with
this bit set will run with effective gid set to the gid of
the file owner.
1000 Set The Sticky Bit
0400 Allow read by owner.
0200 Allow write by owner.
0100 For files, allow execution by owner. For directories,
allow the owner to search in the directory.
0040 Allow read by group members.
0020 Allow write by group members.
0010 For files, allow execution by group members. For directoú
ries, allow group members to search in the directory.
0004 Allow read by others.
0002 Allow write by others.
0001 For files, allow execution by others. For directories
allow others to search in the directory.
--Some Content from freeBSD 4.7 man pages
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
