[Samba] Correct syntax for --home-directory option in samba-tool

Th Söldenwagner thoralf at linexus.de
Mon Nov 24 09:01:02 MST 2014


Hi Rowland,

thanks for the tip. Now the path is set correctly in ADUC, but the 
directory under the home-share still wasn't created.
If I create a user from ADUC and set the path for the home directory and 
its drive letter the directory appears under the home-share as expected.
Is the samba-tool broken?
Thoralf

Am 24.11.2014 um 16:11 schrieb Rowland Penny:
> On 24/11/14 14:53, "Th. Söldenwagner" wrote:
>> Hi,
>>
>> I am working at a school and have to change lots of users every 6 or
>> twelve months.
>> Until now i used the following for loop on this behalf:
>>
>> for i in $(cat user.txt); do samba-tool user add $i  password
>> --must-change-at-next-login --home-drive=H:
>> --home-directory=\\\\elektra\\home\\$i --script-path=domusers.cmd; done
>>
>> This worked fine but today I recognized that everything looks fine in
>> ADUC except that there was no home directory created for my users.
>> I had to create it with another for loop.
>> Thanks for any hint
>> Thoralf
> Enclose the path in double quotes i.e.
> <--home-directory="\\\\elektra\\home\\$i">
>
> Rowland
>


More information about the samba mailing list