Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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'm using Samba 4.0.0beta2 on Debian Wheezy as Active Directory domain controller. I also use winbind in my /etc/nsswitch.conf so getent passwd returns domain users.

I've set

template homedir = /home/%U

in my smb.conf file but, instead of substituting %U for username, getent passwd returns:


Why is that?

share|improve this question

The value has change since Samba4,

New value for the username is %ACCOUNTNAME% use as this :

template homedir = /home/%ACCOUNTNAME%
share|improve this answer
I wrote a similar QA on the Unix and Linux site: – starfry Feb 24 '15 at 10:58

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.