AD authentication and home directory

Latest response



I have set up AD authentication and it is working correctly. I would like to change where home directory is created when user logs on first time. At the moment home directory is created to /home/DOMAIN/user and I would like to change it to /home/user


Thanks in advance!




You can change below in /etc/samba/smb.conf


template homedir = /home/%U


Restart samba & winbind


# service smb restart

# service winbind restart


Its not a good idea to change the template homedir becuase a situation where you have joined domains, In that case user atolani from DOMAIN1 & user atolani from DOMAIN2 will have the same home directory /home/atolani/


Arpit Tolani