Create multiple accounts & SSH
Hi all,
I need to create a (large!) number of new user accounts on an FTP server. I have a list of names and (initial) passwords. Can anyone tell me how to use this file as parameter input to a script to do the create (an example would be nice!)? I want these users NOT to have shell access. Also, as we will be using SSH, is it possible to create the keys in the same manner if I create a file of passphrases? This is because we don't want the users to have any shell access. Many thanks, John. |
Welcome to LQ.
Creating a script like that should be fairly simple, can you post an example line from your input file and a list of the commands you would run manually to create the user accounts. |
this is quick and simple.
#!/bin/bash list=`cat /root/personList`; for item in $list; do useradd $item; done |
All times are GMT -5. The time now is 02:48 AM. |