Xref: utzoo comp.unix.programmer:1235 alt.sources.d:1569 Path: utzoo!utgpu!cs.utexas.edu!sun-barr!lll-winken!elroy.jpl.nasa.gov!usc!nic.csu.net!csun!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.unix.programmer,alt.sources.d Subject: Re: -x implementations Message-ID: <1991Mar07.091123.13033@kithrup.COM> Date: 7 Mar 91 09:11:23 GMT References: <19017@rpp386.cactus.org> <6124@segue.segue.com> <668288533.3106@mindcraft.com> Organization: Kithrup Enterprises, Ltd. Lines: 18 In article <668288533.3106@mindcraft.com> karish@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@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.