Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-12-2012, 05:26 PM   #1
Registered: Apr 2011
Posts: 31

Rep: Reputation: 1
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.
Old 04-12-2012, 05:56 PM   #2
Registered: Mar 2012
Distribution: Slackware, CentOS, OpenBSD, FreeBSD
Posts: 474

Rep: Reputation: Disabled
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?
Old 04-12-2012, 05:59 PM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856Reputation: 4856
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).
Old 04-12-2012, 06:15 PM   #4
Registered: Apr 2011
Posts: 31

Original Poster
Rep: Reputation: 1
Originally Posted by TobiSGD View Post
Quote from the SlackBook, a very good source for Linux knowledge:
Thank you, thank you! Exactly what I needed to know.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems changing file and directory permissions using chmod southwlm Linux - Newbie 4 03-29-2012 02:57 PM
[SOLVED] File permissions not set through chmod smilemukul Linux - Newbie 5 01-09-2011 10:26 AM
chmod won't change the file permissions midtown266 Linux - Newbie 12 11-28-2004 07:46 PM
File Permissions, CHMOD problems, image included. DeathGoth Programming 16 10-05-2004 09:51 PM
chmod and file permissions help qages Linux - General 5 01-27-2003 06:08 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration