-
Notifications
You must be signed in to change notification settings - Fork 769
File System, Part 3: Permissions
angrave edited this page Nov 7, 2014
·
20 revisions
(From code? Command?) Reference counting?
rm = unlinking?
chmod 644 /bin/sandwhich
chmod 755 /bin/sandwhich
chmod ugo-w /bin/sandwhich
chmod o-rx /bin/sandwhich
chmod(const char *path, mode_t mode);
set-user-ID-on-execution/set-group-ID-on-execution Why are they useful?
ls -l /usr/bin/sudo
-r-s--x--x 1 root wheel 327920 Oct 24 09:04 /usr/bin/sudo
Use geteuid() == 0
Legal and Licensing information: Unless otherwise specified, submitted content to the wiki must be original work (including text, java code, and media) and you provide this material under a Creative Commons License. If you are not the copyright holder, please give proper attribution and credit to existing content and ensure that you have license to include the materials.