I want to do the same things 😮
Script the make aof a new user, and so, put a password on his account.
[code]
–creation du dossier Home (vide)
do shell script (“mkdir ” & “~/” & text returned of varlogin)
–creation de l’utilisateur dans la base NetInfo
do shell script (“sudo dscl localhost -create /NetInfo/root/Users/” & text returned of varlogin & ” UserShell /bin/bash”)
do shell script (“sudo dscl localhost -create /NetInfo/root/Users/” & text returned of varlogin & ” HomeDirectory ~/” & text returned of varlogin)
do shell script (“sudo dscl localhost -create /NetInfo/root/Users/” & text returned of varlogin & ” UniqueID 800″)[/code]
that’s not really my finished script, its on test, i want to make several new account with it.
yes in apple script, i do other thing after and before that…
[b]do shell script (“sudo passwd ???? <- what i do here ?[/b]
so.... how can i put in the script a password on that new account ?
Recent Comments