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 --- --- ---
Yes - that is correct, 644 :)But if you think of it as bits making octal #'s you will not get in trouble ... it is the correct way, but of course, whatever is easiest to understand is *really* the right way. But, it is really:
rw- r-- r--110 100 100 - which is the binary for the *octal* numbers 6 4 4 as per my previously posted chart of binary/octal conversions. An *on* character, r w or x, is a 1 in the position, it is not a 4 in that position.
Jale