Hallo, Volker, Du meintest am 15.05.09:
>> I am trying to write a script in which I can add users and their >> samba passwords easily and quickly. It looks something like: >> useradd -c "User Name" -g groupname -p unixpassword accountname >> >> echo -e "smbpassword\nsmbpassword\n" | pdbedit -a -t -u >> accountname >> >> If >> I type the lines from the keyboard, it works fine. However, when I >> try to execute the script, the pdbedit on the second line reports >> that there's no unix accountname to apply to samba. I assume that >> this is because the useradd process hasn't finished when the pdbedit >> is executed. > nscd? In my installation: no nscd (and no LDAP, and no winbind). Tested with samba 3.0.28 to 3.0.33 (not my favorite bug to test it in every new version ...) Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
