Shaun Megaw
2013-Sep-16 11:55 UTC
[Samba] automatically create users home directories samba 4.0.9
Hi all same problem as here https://lists.samba.org/archive/samba/2013-January/170817.html I can create a user called xlinuxd but it does not automatically create a home directory. I use the following command: samba-tool user add xlinuxd --given-name=Linux --surname=Delta --home-drive=H --home-directory="\\\mydomain\Users\xlinuxd" --mail-addresslinux.delta at mydomain.co.za --script-path=xlinuxd.cmd When going to a windows machine, if I open dsa.msc it shows the home folder correctly, but does not physically create a home folder. I have tried to create a physical directory and then invoke : chmod 770 /home/Users/xlinuxd -R but this does not work either I am also creating hundreds of users, so would like a command line option instead of editing each user through the dsa.msc and creating home directories. Any assistance would be appreciated. Kind Regards -- -- *Shaun Megaw*
steve
2013-Sep-16 12:59 UTC
[Samba] automatically create users home directories samba 4.0.9
On Mon, 2013-09-16 at 13:55 +0200, Shaun Megaw wrote:> > I have tried to create a physical directory and then invoke : > chmod 770 /home/Users/xlinuxd -R > but this does not work eitherTry this first: samba-tool user delete xlinuxd The recreate it but with: --home-directory="\\mydomain\Users\xlinuxd" When that doesn't work, try this too: I think you'll need to set the permissions. wbinfo -i xlinuxd then chown uidNumber:gidNumber /home/Users/xlinuxd chmod 755 /home/Users/xlinuxd In windows, it'll then appear as H:\ HTH Steve