[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Bulk user help for LDAP/Samba



k12osn redhat com writes:
>We have a adduser script, that reads in the groupid, first, and last 
>name, and sets them as variables, and then
>adds them to the system as follows(forcing password as their password, 
>but that could also be done as a variable)
>
>smbldap-useradd.pl -a -m -g $gid -c "$first $last" $uname
>echo -e password\\npassword|smbldap-passwd.pl $uname
>chown -Rf $uname.$gid /home/$uname
>chmod -Rf og+rX-w,u+rwX /home/$uname
>
>Hope this helps...
>I believe there is an error with the above method, but it does 
>work.(smbldap-passwd.pl doesn't like it, but it accepts it...just
>complains)


This looks good, but I'm a little confused...can you give me a usage
example.....use Scooby Doo for a user for example.   does it read from a
txt file or right from the command?

David N. Trask
Technology Teacher/Coordinator
Vassalboro Community School
dtrask vcs u52 k12 me us
(207)923-3100




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]