LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Looking to Create User Accounts Using Batch Load Script (https://www.linuxquestions.org/questions/linux-newbie-8/looking-to-create-user-accounts-using-batch-load-script-600420/)

wlue 11-17-2007 12:22 PM

Looking to Create User Accounts Using Batch Load Script
 
Hi All,
I am new to Linux, just took a 101 class. I have a .sxw list of users with lastname, firstname and I am looking to create accounts for each user, putting the list of users into two groups, using a utility (script) to batch load the list of names into the groups. Is there a script that can be written to do this? Any help will be appreciated.

acid_kewpie 11-17-2007 03:03 PM

clearly not an intro. moved to Linux - Newbie.

chrism01 11-17-2007 09:04 PM

That .sxw file will (prob) have formatting codes in it. Extract the list as plain text, then build a bash script around the useradd cmd:
man useradd

juanctes 12-17-2007 01:51 PM

Quote:

Originally Posted by chrism01 (Post 2962601)
That .sxw file will (prob) have formatting codes in it. Extract the list as plain text, then build a bash script around the useradd cmd:
man useradd

Hi have a similar problem! need a script to ass users but the useradd cmd lets you insert an allready encripted pass, HOW can i encrypt the pass in order to be able to login with the keyword?
useradd -p qwe user => this puts "qwe" in the shadow file who knows wich keyword gould be casted to qwe after encryption?
so new users cant login..


All times are GMT -5. The time now is 07:48 PM.