Path: utzoo!mnetor!uunet!husc6!linus!gatech!udel!mmdf From: Leisner.Henr@xerox.com (marty) Newsgroups: comp.os.minix Subject: Is the X bit enough to exec the file? Message-ID: <1408@louie.udel.EDU> Date: 7 Mar 88 23:06:20 GMT Sender: mmdf@udel.EDU Lines: 22 I've notices some strange behavior execing programs. I wonder is this the way Minix is designed, a bug in my own Minix version or something to be fixed. It seems if the user does not have permission to read the file, he cannot execute it. On Unix, setting permissions to --x--x--x allows everyone to execute the program. On the Minix I'm running, it is necessary to have r-x permission to execute. Since the mm is actually opening the file to be exec as O_READONLY, if there is no read permission on the file, I don't see any special code to allow it be open to be read. mm/utility/allowed() just tries to open the file to be execed. Since the file isn't readable, fs turns it down. Am I missing something or is this the design (r-w is necessary to exec)? marty ARPA: leisner.henr@xerox.com GV: leisner.henr NS: martin leisner:henr801c:xerox UUCP: nsc!nscimg!amps!marty