CaT wrote:
>
> On Sun, Jul 11, 1999 at 12:52:30AM -0600, Ricardo Denis wrote:
> > greetings friends,
> >
> > is there a table for figuring out file/directory permisions? for example, i
> > know 755 equals rwxr-xr-x. there are others such as 666, 500, 505 etc but
> > how do i "translate", so to speak, to r�s w�s and x�s? thanks for any advice.
>
> r = 4
> w = 2
> x = 1
>
> Add and combine. :)
>
> man chmod for more info.
>
To be more explicit, the permissions string is a three digit octal
number obtained by grouping the into units of three. Each of the r,w,x
represent a high binary bit (1) and the - is a low bit (0). For example
rwxr-xr-x is grouped as [rwx][r-x][r-x], or in binary [111][101][101].
Convert each of these three bit binary numbers to the equivalent octal
number yields 755. Another example converting from number to r,w,x form
666 =[110][110][110] =rw-rw-rw-. By the way the three groups, from the
left are permissions for owner, group, and all others.
Ralph