[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: default file permissions



On Tuesday 11 May 2004 08:13 am, Bart Dorsey wrote:
> On Monday 10 May 2004 11:17 am, Antonio Rodriguez wrote:

> > do with the "sticky bit", about which I wouldn't mind reading. It
> > seems that in most references that I have seen they don't talk about
> > it much.
>
> Okay, here goes ;) you asked for it ;)

Since he asked for it, and since I think I'm the last person on earth who 
still has a copy of my hacked ls, I will present the ultimate completely 
useless list of every combination from 0000 to 7777

Nah, nevermind.  That's a 268K file.  Ouch!  :)

But just to prove what a dork I am:

$touch glee;for ((a=0;a<=7;++a));do for ((b=0;b<=7;++b));do for ((c=0;c<=7;
++c));do for ((d=0;d<=7;++d));do chmod $a$b$c$d glee;ls -O 
glee;done;done;done;done > foo

$tail foo
7766 -rwsrwSrwT    1 silvan   silvan          0 May 12 02:53 glee
7767 -rwsrwSrwt    1 silvan   silvan          0 May 12 02:53 glee
7770 -rwsrws--T    1 silvan   silvan          0 May 12 02:53 glee
7771 -rwsrws--t    1 silvan   silvan          0 May 12 02:53 glee
7772 -rwsrws-wT    1 silvan   silvan          0 May 12 02:53 glee
7773 -rwsrws-wt    1 silvan   silvan          0 May 12 02:53 glee
7774 -rwsrwsr-T    1 silvan   silvan          0 May 12 02:53 glee
7775 -rwsrwsr-t    1 silvan   silvan          0 May 12 02:53 glee
7776 -rwsrwsrwT    1 silvan   silvan          0 May 12 02:53 glee
7777 -rwsrwsrwt    1 silvan   silvan          0 May 12 02:53 glee

(I hate it that GNU rejected my patch.  I think ls -O is indispensably handy.  
It's not worth forking whatever superpackage fileutils became though.)

-- 
Michael McIntyre  ----   Silvan <dmmcintyr@users.sourceforge.net>
Linux fanatic, and certified Geek;  registered Linux user #243621
http://www.geocities.com/Paris/Rue/5407/



Reply to: