-   Linux - General (
-   -   File Permissions (Chmod) (

scandalist 04-12-2012 06:26 PM

File Permissions (Chmod)
Real quickly...

I've been experimenting with users and groups and noticed that if I assign a folder to a specific group, the users who belong in that group can only access the directory if I add the execute permission to the folder. so For example I have a user called test who belongs in a group called "Music"

so If do a "chmod g=rw Music" user "test" still does not have access to the folder until I "chmod g=rwx Music"

I have checked the folder with "ls-l" and the directory and contents certainly belong to the group. Can anyone shed light on this? certainly read and write permissions should allow a user to traverse the directory.

TommyC7 04-12-2012 06:56 PM

I personally use the numerical method myself but read permissions by itself allows the people of the group to look at the directory's contents, but can we see the output of "ls -g" on that specific directory?

Also, how did you make the group?

TobiSGD 04-12-2012 06:59 PM

Quote from the SlackBook, a very good source for Linux knowledge:

The permissions are pretty self explainatory of course, at least for files. Read, write, and execute allow you to read a file, write to it, or execute it. But what do these permissions mean for directories? Simply put, the read permissions grants the ability to list the directory's contents (say with ls). The write permission grants the ability to create new files in the directory as well as delete the entire directory, even if you otherwise wouldn't be able to delete some of the other files inside it. The execute permission grants the ability to actually enter the directory (with the bash built-in command cd for example).

scandalist 04-12-2012 07:15 PM


Originally Posted by TobiSGD (Post 4651381)
Quote from the SlackBook, a very good source for Linux knowledge:

Thank you, thank you! Exactly what I needed to know.

All times are GMT -5. The time now is 10:52 AM.