Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a problem on my Solaris file server, with UFS file system.

I have created a folder on my file server called "projects" intended for storing all files connected with projects that we are currently working on, allowing for several people to collaborate using the same files.

What I would like to achieve is that files and folder dropped here automatically has the group set to proj, for example, and thus are accessible and editable for all members of the group proj.

As is is set up now the users have to run a script manually to change the group on all files and folders in the folder but I have several users that drop files from a windows environment with no possibility of doing this.

So my question is: is it possible to set up this using either ACL or using sticky bits or using any other brilliant solution, and how would I do this?

share|improve this question
3  
Might also have luck asking this one on serverfault.com –  squillman Sep 21 '09 at 13:52
    
Is this folder served with NFS, SMB or something else? –  Richard Hoskins Sep 21 '09 at 14:40
    
@Richard: We're using SMB @squillman: Ok, thank you, will remember that! –  Jonas Hallgren Sep 24 '09 at 10:04

1 Answer 1

up vote 2 down vote accepted

On Solaris, bit 02000 of the file mode determines whether a directory has BSD group ID semantics (when set) or System V semantics (when clear). This is the 'set group ID' bit, and is set by 'chmod g+s ' (and cleared with g-s). BSD semantics is that the group ID for a newly created file in that directory will be that of the directory, rather than the System V version, that of the creating process.

share|improve this answer
    
Perfect, setting g+s solved our problem, in combination with adding "force group = proj" to smb.conf. Thank you! –  Jonas Hallgren Sep 24 '09 at 10:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.