-x implementations

Sean Eric Fagan sef at kithrup.COM
Thu Mar 7 19:11:23 AEST 1991


In article <668288533.3106 at mindcraft.com> karish at mindcraft.com (Chuck Karish) writes:
>It would be helpful if there were a second interface that could be used
>to check file access based on the effective UID.  Adding a flag to
>access() at this point would not be an acceptable solution; it would
>break too much existing code.

SCO has an eaccess which does exactly that.  I just tried it, and it worked.
(Actually, I had a fun few minutes, because it kept telling me that I had
write permission to /etc/passwd without having to be root [I made my binary
suid root].  If occurred to me, after a while, that the file was group
writable, and, now that multiple groups work, I happen to be in the
"correct" group to write to it.  Neat...)

-- 
Sean Eric Fagan  | "I made the universe, but please don't blame me for it;
sef at kithrup.COM  |  I had a bellyache at the time."
-----------------+           -- The Turtle (Stephen King, _It_)
Any opinions expressed are my own, and generally unpopular with others.



More information about the Comp.unix.programmer mailing list