Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!cbatt!ihnp4!uniq!rjnoe From: rjnoe@uniq.UUCP Newsgroups: comp.unix.wizards Subject: Re: ls -l obscures important information Message-ID: <239@uniq.UUCP> Date: Fri, 13-Mar-87 09:39:11 EST Article-I.D.: uniq.239 Posted: Fri Mar 13 09:39:11 1987 Date-Received: Sat, 14-Mar-87 11:14:41 EST References: <17803@ucbvax.BERKELEY.EDU> <1264@sphinx.UChicago.UUCP> Distribution: na Organization: Uniq Digital Technologies, Batavia, IL Lines: 30 In article <1264@sphinx.UChicago.UUCP>, kdw1@sphinx.UChicago.UUCP (Keith Waclena) writes: > > In <17803@ucbvax.BERKELEY.EDU> haynes@ucbarpa.Berkeley.EDU (Jim Haynes) > writes: >> installed originally with mode 2701 - not executable by the group - >> but of course ls -l shows rwx--s--x as if all were well. > > I don't know what version of Unix you're using (4.[23]?), but System V > (release 2.0 and higher)'s ls would have displayed a capital S in the > example above to indicate that the execute permission was not set. That is true of Bell Labs UNIX at least as far back as System III, maybe further, and up through System V Release 2 (any version). But in System V Release 3 that 02701 mode would show up as "rwx--l--x", i.e. 'l' (the lowercase letter) in place of 'S'. Also, the chmod(1) command has added options +l and -l (although the ugo prefixes in this case are meaningless). This is to permit mandatory locking on the file. That is, the semantics of what used to be "set group id but group may not execute" has changed to "cause locks to be mandatory rather than advisory". If you then try to do any chmod on the file that would attempt to set the group-execute permission (chmod g+x or any superset thereof) you would get the warning that it's a lockable file and (group) execute permission cannot be set. Beginning in SVR3 it's impossible to have a file that's set-group-id yet not executable by the group. -- "Uniqs System V Release 3 - coming soon to a VAX near you!" Roger Noe ihnp4!uniq!rjnoe Uniq Digital Technologies rjnoe@uniq.UUCP 28 South Water Street +1 312 879 1566 Batavia, Illinois 60510 41:50:56 N. 88:18:35 W.