LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-17-2007, 01:22 PM   #1
wlue
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Question 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.
 
Old 11-17-2007, 04:03 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
clearly not an intro. moved to Linux - Newbie.
 
Old 11-17-2007, 10:04 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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
 
Old 12-17-2007, 02:51 PM   #4
juanctes
Member
 
Registered: Dec 2004
Location: Argentina, corrientes (far from buenos aires, to the north)
Distribution: Ubuntu :(
Posts: 74

Rep: Reputation: 15
Quote:
Originally Posted by chrism01 View Post
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..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is info to create user accounts located? RavenLX Ubuntu 2 08-15-2007 02:34 PM
Need script to create many accounts at once Nex321 Linux - General 2 08-13-2005 04:58 PM
how to create user root accounts - SuSE 92 jdaniel Linux - Software 3 07-29-2005 12:35 PM
Create Limited User Accounts epihammer Mandriva 3 05-18-2004 03:52 PM
Create many user accounts kelper Linux - Software 7 09-06-2003 07:03 AM


All times are GMT -5. The time now is 02:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration