Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!gatech!hao!husc6!bu-cs!m2c!applix!mark From: mark@applix.UUCP (Mark Fox) Newsgroups: comp.unix.questions Subject: access(2) question Message-ID: <530@applix.UUCP> Date: Wed, 17-Jun-87 13:39:50 EDT Article-I.D.: applix.530 Posted: Wed Jun 17 13:39:50 1987 Date-Received: Sun, 21-Jun-87 10:03:10 EDT Organization: APPLiX Inc., Westboro MA Lines: 15 Keywords: access permissions Does anybody know why access checks file accessibility using the real [ug]id in place of the effective [ug]id? It seems to me that access should agree with open(2) as far as whether a program has write or read access to a file. Inside a set-uid program that assumption obviously doesn't work while uid != euid. Should access have been implemented the other way or should another version of access (eaccess?) exist or am I brain damaged? Is there a better way of implementing eaccess than using open/close, assuming I don't have the file already opened? -- Mark Fox Applix Inc., 112 Turnpike Road, Westboro, MA 01581, (617) 870-0300 uucp: seismo!harvard!m2c!applix!mark