0

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:

HOME\Administrator:*:0:100::/home/%U:/bin/bash
HOME\Guest:*:3000000:3000001::/home/%U:/bin/bash

Why is that?

MasterM
  • 1,061
  • 2
  • 11
  • 18

1 Answers1

2

The value has change since Samba4,

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

template homedir = /home/%ACCOUNTNAME%
ob2
  • 186
  • 5
  • I wrote a [similar QA](http://unix.stackexchange.com/a/156449/9259) on the Unix and Linux site: – starfry Feb 24 '15 at 10:58