Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have a directory with files owned by Linux user quux. I want to give access to it over CIFS using Samba 4 for two persons so they have different usernames foo and bar and passwords but access the same files under the same Unix UID and GID of quux.

In Samba 3 it was possible by using force user and forced group parameters of share configuration in smb.conf but the options are no longer supported in Samba 4.

Is something similar possible with Samba 4?

Upd: We use samba to edit files on development Linux server from Windows PCs. For simplicity of deployment it's better to have the same file ownership and permissions on production and development servers.

Ideally every developer should have single pair of username/password to remember and use it to connect to any project at any server as opposed to having different credentials for different projects and/or servers.

share|improve this question
    
What's the motivation to have them use the quux user? If you have acl's enabled that should provide you with a way to explicitly set rights rather than forcing two different users to use the same UID. force user is a kludge to work around older issues anyways. –  Bratchley May 3 '13 at 17:46
    
Edited question to clarify. –  nponeccop May 7 '13 at 13:01
    
Sounds like quux is supposed to be a proxy for group access to a particular directory tree/file. Is there an objection to modelling group memberships according to organizational roles and using setfacl to give those groups and individual users access to those files? –  Bratchley May 7 '13 at 14:12
    
Basically, that's more in line with "best practices" since people are using their own accounts and changes in organizational roles can be more easily managed from one location (the point of group membership in whatever group is supposed to represent their role). –  Bratchley May 7 '13 at 14:14

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.