Execute permission for root?

Peter J. Holzer hjp at wsr.ac.at
Mon Nov 29 11:41:46 GMT 1999


On 1999-11-28 15:38:38 -0800, Andrew Morgan wrote:
> I believe if you take the POSIX.1e draft as a whole,

I don't have it at hand to check, but

> it becomes clear
> that the root user is no different from any other user. Thus,
> 
> no to this one:
> > -rwxr--r--   1 andy     users      143642 Nov 28 20:52 script1
> 
> yes if root is in the 'users' group and no otherwise:
> > -rw-r-xr--   1 andy     users      143642 Nov 28 20:52 script2
> 
> no to this one:
> > -rw-r--r--   1 andy     users      143642 Nov 28 20:52 noscript

If this is true, it deviates from the behaviour of current Unix systems.
On Linux (2.2.x), HP-UX (10.20) and Solaris (7), root can execute the
first two scripts (regardless of the group) but not the third one.

	hp

-- 
   _  | Peter J. Holzer             | Nobody should ever have to be
|_|_) | Sysadmin WSR / Obmann LUGA  | ashamed if they have a secret love
| |   | hjp at wsr.ac.at               | for writing computer programs that
__/   | http://wsrx.wsr.ac.at/~hjp/ | actually work.  -- Donald E. Knuth
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 367 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/posix1e/attachments/19991129/cf56adc4/attachment.bin


More information about the posix1e mailing list