Creating New Users over Telnet/SSH

Derek Ragona derek at computinginnovations.com
Tue Sep 26 08:30:36 PDT 2006


You can gather the information with a shell script and send the arguments 
to pw which you can run via sudo.  However you will need to replace the 
normal process running the login (telnetd or sshd) and pass the login 
information to that daemon or create a new user depending on the input data.

         -Derek


At 12:38 AM 9/26/2006, John Cruz wrote:
>So a friend of mine is interested in creating a FreeBSD telnet/SSH box for 
>people in his networking class to screw with. He said he wants to do 
>something like what happens when you telnet into
>sdf.*lonestar.org *and if you're a new user you just type new and go from 
>there, but I've never done this or looked into it, so I was wondering if 
>any of you had any ideas on how to do this.
>
>Basically,
>
>User telnets to the server. if they have a username and password, they put 
>it in. If they don't, then they are taken to a place where they can create 
>a new account (on lonestar, it says it's taking you to a "NEWUSER mkacct 
>server" to do this then asks me to put in FEP commands for creating shell 
>accounts)
>
>It gives you the options and disclaimer and such and you have to agree 
>then choose a username.
>
>Then it asks you more questions like zip code and password and such and it 
>finally creates your user account, you can then log in to the system.
>
>Lonestar is using netBSD, we are going to use FreeBSD 6.1
>
>Any info on how to accomplish this is greatly appreciated.
>
>-John Cruz
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>
>--
>This message has been scanned for viruses and
>dangerous content by MailScanner, and is
>believed to be clean.
>MailScanner thanks transtec Computers for their support.
>

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.



More information about the freebsd-questions mailing list