How do I force specific permissions for new files/folders on Linux file server?

Posted by humble_coder on Server Fault See other posts from Server Fault or by humble_coder
Published on 2010-07-08T13:19:12Z Indexed on 2012/09/25 15:39 UTC
Read the original article Hit count: 296

I'm having an issue with my install of Ubuntu 9.10 (file server) and its samba permissions. Logging in and reading works fine. However, creation of new directories by users restricts access for other users. For instance, if Bob (Windows user who maps the drive) creates a folder in the directory, Jane (Mac user that simply smb mounts) can read from it, but can't write to it -- and vice versa. I then must go CHMOD 777 the directory for everyone to be happy. I've tried editing the "create/directory mask", and "force" options in the smb.conf file but this doesn't seem to help.

I'm about to resort to CRONTABing a recursive chmod routine, although I'm sure this isn't the fix. How do I get all new items to always be 777? Does anyone have any suggestions to fix this ever-occurring situation?

Best

© Server Fault or respective owner

Related posts about linux

Related posts about networking