ls -l obscures important information

ivanlan%mycroft at gswd-vms.arpa ivanlan%mycroft at gswd-vms.arpa
Sat Mar 14 05:12:45 AEST 1987


    >From: Jim Haynes <haynes at ucbarpa.Berkeley.EDU>
    >Subject: ls -l obscures important information
    >Date: 12 Mar 87 06:31:54 GMT
    >Sender: usenet at ucbvax.BERKELEY.EDU

    >I had a maddening problem in which a member of a group could not
    >execute a program that was setgid to that group.  After some fuddling
    >around I chmoded the program again and suddenly it worked.  Turned
    >out that a mistake in a makefile had caused the program to be
    >installed originally with mode 2701 - not executable by the group -
    >but of course ls -l shows  rwx--s--x   as if all were well.

    >Jim Haynes
    > ...ucbvax!ucscc!haynes


system V ls does this better;  it uses 'S' instead of 's'
if the execute bit is not also set:

-rwx--S--x  1 ivanlan  staff           6 Mar 13 11:43 xxx

sysV ls is broken plenty of other ways, though.  but then,
so is bsd ls.


i fixed my ls, by the way, so it works properly:

- 2701  1 ivanlan  staff           6 Mar 13 11:43 xxx

------------------ 
ivan van laningham
gould/csd - urbana
uucp:	ihnp4!uiucdcs!ccvaxa!ivanlan
arpa:	ivanlan at gswd-vms

disclaimer: 
	"ls -ivanlan considered dangerous"



More information about the Comp.unix.wizards mailing list