Hi,
if you know BINARY then it's easy to see what the CHMOD # is.
rwxrwxrwx
110110100
644
and so on, and so on. A lot of people don't know thats an easy way to
figure it out.
You did mean 664 :)
Minor technicality - it is really OCTAL (base 8) not binary - the 664 is
the octal representation of the (binary) bits. The reason I say
specifically that it is octal and not binary is that binary can be
represented in octal or hex, thus, if you don't think of it as octal
110110100 could be DA0 (if you read left to right), or 1B4 (if you read
right to left), in octal, left-right or right-left you end up with the
same correct value of 664.
And thinking of it as octal and not binary will prevent those not
understanding this from making silly errors. The example above would
produce an error, ie: chmod 1B4 - bur, if it were r--r--r-- , 444 it could
be interpreted as 124 (right to left) if someone were to convert *binary*
to hex and not octal, a very valid chmod 124. Thus, wrong permissions.
Okay, I'm getting really technical, but I was an assembly language
programmer for many years on octal-based systems. I may not know how to
make a web page file list display full width (well I do now), but I do
know my octal arithmetic. I do that math in my head :)
Regards,
Jale
PS: I hope I got all my conversions correct.
_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users