It appears that each file/directory has a given set of permissions shown by the 10 characters to the far left of each listing if one were to type into the terminal
Considering that you can change the permissions by using
chmod OCTAL fileName, it appears to me that such permissions are possibly set by flags of a 10-bit word somewhere in memory?
What I am confused about is that the listing might look something like this:
What exactly does this represent? Why are there several instances of
read permissions shown by
I also read that you must use
6xx (resulting in -rw-------) when writing permissions to files, and
7xx (resulting in drwx------) when writing permissions to directories. Considering that BOTH of these octal representations only expand to 9 bits of information, how are we setting the 10-bit permissions?
I also read that if you want to "remove group and other read permissions" you could use the line:
chmod go-r fileName
First I experimented by doing this:
chmod 677 testFile and then used the previously mentioned line:
chmod go-r testFile -v and was met with the following output:
mode of testFile changed to 0633 (rw--wx-wx)
I am quite new to this and have yet to find a very succinct and clear write-up on the details.