Execute permission for root?

a.gruenbacher at infosys.tuwien.ac.at a.gruenbacher at infosys.tuwien.ac.at
Sun Nov 28 21:47:17 GMT 1999


Hello,

Does anybody know what the exact rules for determining the execute permission
for the superuser (root) are? It seems clear to me that root should always have
r and w permissions (unless the filesystem is read-only, for example). How about
the x permission?

Should root be allowed to execute files in any case?
Should root be allowed to execute all files for which at least one execute bit
is set?

Examples:

> ls -l
-rwxr--r--   1 andy     users      143642 Nov 28 20:52 script1
-rw-r-xr--   1 andy     users      143642 Nov 28 20:52 script2
-rw-r--r--   1 andy     users      143642 Nov 28 20:52 noscript


The same problem extends to permissions granted through an ACL. Scanning for
execute bits causes an additional overhead when checking permissions.


Thanks,
Andreas

------------------------------------------------------------------------
 Andreas Gruenbacher, a.gruenbacher at computer.org
 Contact information: http://www.infosys.tuwien.ac.at/~agruenba
To Unsubscribe: send mail to majordomo at cyrus.watson.org
with "unsubscribe posix1e" in the body of the message



More information about the posix1e mailing list