[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I know, I know - Stupid Question:
Quoted from PC Drew:
> yes and no. For most purporses, chmod 0755 == chmod 755. However,
> when you get into more sophisticated permissions (sticky bit, dirty
> bit, etc) that's when the leading 0 comes into play. For instance,
> when you see something with the following permissions:
>
> rwsr-xr-x
>
> the permissions are "4755"
So? For chmod(1), 0755 == 755, for all (not just ``most'') purposes.
However, typing 0755 (and, in the case above, 04755) is good practice,
since the numbers are actually octal. When you write programs in C or
Perl that call chmod(2), say, it Really Matters (tm).
e.g., rwxr-xr-x == 0755 == 493
---Chris K.
--
Chris, the Young One |_ but what's a dropped message between friends?
Auckland, New Zealand |_ this is UDP, not TCP after all ;) ---John H.
http://cloud9.hedgee.com/ |_ Robinson, IV