0

I got a directory in which my group is the owner. The group has two users, however, when a user create a directory the other user can't move the files.

Why is that and how can I change so that the users within a group can move each other files?

Now I have to chown everytime I need to move another users files which is very ineffective...

1 Answer 1

0

Try making the directory itself mode 2775 (ie, turn on the group sticky bit). This should mean that people creating a directory or file in that directory by virtue of their group ownership will have the resulting files group-owned by that group, with the group sticky bit set (if it's a directory), and group-writeable (unless their umask forbids it, or they manually chmod it, and there's not much you can do about that except tell them not to), which will enable other group members to edit/delete files.

2
  • Thanks man! It works, they wont manually chmod so this should work then :)
    – Philip
    Oct 4, 2012 at 10:41
  • As long as their umask is 002, not (eg) 022, yes, it should. Glad to help!
    – MadHatter
    Oct 4, 2012 at 13:08

You must log in to answer this question.

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