Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a basic linux file permissions question:

I have a folder named test:

$ ls -la
drwxr-xr-x  5 root root    4096 2010-10-25 17:11 .
drwxr-xr-x 17 root root    4096 2010-10-25 16:53 ..
drw-rwS---  3 root codedev 4096 2010-10-25 17:11 test

In this folder (test) I want all users that are members of the group codedev to have read and write access, even to those files (inside test) that other users has created.

I have a testuser:

$ groups testuser 
testuser : testuser codedev

Why can't the user testuser cd into the directory test? How should I do the make this work?

share|improve this question

migrated from stackoverflow.com Oct 27 '10 at 13:02

This question came from our site for professional and enthusiast programmers.

up vote 1 down vote accepted

In order to cd to a directory the user needs execute permission on the directory too, either by dint of ownership, or at the group, or world/other level.

share|improve this answer
    
thanks, that did it! :-) – Tirithen Oct 27 '10 at 13:06

Your directory is setgid, but not group executable.

If you want all users of the group to have read/write access as well, you'll need to make sure new files are created with group write permission. The easiest way to do that is to set the umask to 0775.

share|improve this answer
    
thanks, that solves the final thing – Tirithen Oct 27 '10 at 13:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .