Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 setup a RHEL5 server that is running samba & winbind. I am also using the 'username map' feature to map all my Linux user accounts to their AD user accounts. The Windows users can map to the Samba share and everything works as it should.

The only issue I am having is when the Windows users are coping files to the share the files are set with the AD User account of 'DOMAIN+user' instead of the Linux user 'user group'.

Does anyone know of a way that when the Windows users add files to the share that the permissions with be for their Linux account and not their AD user account? Is this even possible?

share|improve this question

I don't know how to do it the way that you're configuring it, but I know that Likewise Open did all of this for me. It makes it extremely easy to add domain users into local groups, and UID/GIDs are a hash, so they're identical across all of my authenticated machines. I can't tell you how amazing it was to finally have it just work.

share|improve this answer

I'm not sure how username map works...

Could you give the linux user accounts the same uid as the DOMAIN+user equivalent? In that case when you log on as the linux user, you will be able to see the same files that the DOMAIN+user can.

share|improve this answer
I would need to change all my Linux user ID's to 'DOMAIN+user' so they map correctly but I have a few users who do not want to change their ID's. Even my user ID which is the same on the Linux servers an in AD has an issue with files that I add to these Linux servers from my Windows boxes. So if I logon to the Linux servers I would have to 'chown' all the files so that they are owned by the Linux user account and not the 'DOMAIN.user' account. – Mike Gargano Jun 4 '09 at 13:59
If you still need to chown the files (and it works to do that), then I have not been clear. Making your linux UID match the UID listed when you do "getent passwd|grep DOMAIN+user" means that chown will not do anything. The UID will already be the same. – Brent Jun 4 '09 at 14:18

Your Answer


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.