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

RE: [cobalt-users] chmod



>
> > basically you have the rights:
> > 4 = read
> > 2 = write
> > 1 = exec
> >
> > Just add 'em up, so if a you need rw-rw-r-- that makes chmod 664 (4+2
> makes
> > rw ;-)
> > Or you can do it: chmod u+rw,g+rw,o+r
> >
> That's fine but I was doing -rw-r--r--, which is 644, right?

isn't it as simple as this??? (Hope I got it right :)

O=Owner
G=Group
W=World
r=read, w=write, x=executable permissions.

 O  G   W
rwx rwx rwx
421 421 421
--- --- ---
= 7   7   7
--- --- ---

rw- rw- rw-
420 420 420
--- --- ---
= 6   6   6
--- --- ---

rwx rw- r--
421 420 400
--- --- ---
= 7   6   4
--- --- ---
Therefore...

rw- r-- r--
420 400 400
--- --- ---
= 6   4   4
--- --- ---

Paul ASI.