[K12OSN] user account scripts
Petre Scheie
petre at maltzen.net
Thu Jan 4 22:01:18 UTC 2007
I believe Webmin has a utility that allows for this (haven't used it myself).
Otherwise, I've got an 'expect' script that takes a ID and PW as parameters and PW to
the given ID. Then you just write a script that parses the file for each ID & PW and
calls the expect script accordingly. I can post the expect script if you're interested.
Webmin might be easier, but writing scripts like this is more fun. ;-)
Petre
Ray Garza wrote:
> Hello Script Gurus,
>
> Anyone know how to create user accounts from a text file using scripts?
>
> Example:
>
> user_accounts.txt
> "username1","password"
> "username2","password"
> "username3","password"
> "username4","password"
>
> convert that list into users on a local machine
>
> Better yet I need to convert a dbase file of usernames and passwords into
> valid local user accounts. I can convert the dbase file to other formats if
> that helps.
>
> Thanks
>
> Ray
>
> _______________________________________________
> K12OSN mailing list
> K12OSN at redhat.com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
>
More information about the K12OSN
mailing list