Re: add user with shell account
On Mon, 24 Feb 2003 08:19:32 -0600 "default013" <[EMAIL PROTECTED]> wrote: > I'm working on a script that will automate making shell accounts and I > guess I'm a bit stumped on how one enters the encrypted password into > the deal. adduser does it; it's a Perl script. -- _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ Gary Dunn _/ _/ Open Slate Project _/ _/ http://openslate.sourceforge.net/ _/ _/ http://www.aloha.com/~knowtree/_/ _/ Honolulu _/ _/ registered Linux user #273809 _/ _/ _/ _/ This tagline is umop apisdn. _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ _/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: add user with shell account
On Mon, 24 Feb 2003, default013 wrote: > I'm working on a script that will automate making shell accounts and I guess > I'm a bit stumped on how one enters the encrypted password into the deal. > > If anyone knows any resources where I might find this kind of info or has > some suggestions for me it would be very much appreciated. If you don't mind learning a new language, check out Expect. Its an extention to TCL that allows the language to script/automate command line programs such as the adduser command. Alternately, look at man 8 pw and /usr/share/skel. These should get you started. Once upon a time, I took the adduser script that came with FreeBSD and was written in perl (in C now) and hacked it to do what I wanted. You could take that approach, too. Good luck, Jaime -- "To affect the quality of the day, that is the highest of arts." - Henry David Thoreau, _Where_I_Live_ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message
Re: add user with shell account
default013 wrote: Hello, I'm working on a script that will automate making shell accounts and I guess I'm a bit stumped on how one enters the encrypted password into the deal. If anyone knows any resources where I might find this kind of info or has some suggestions for me it would be very much appreciated. You don't say much about your script, but I've been able to make user management scripts with no problems (using just sh). Are you using the pw command for interacting with the password database? See the man page for pw if not. That may solve your whole problem. -- Bill Moran Potential Technologies http://www.potentialtech.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message