LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Closed Thread
 
Search this Thread
Old 06-29-2007, 06:05 AM   #1
EsAsher
LQ Newbie
 
Registered: Jun 2007
Posts: 8

Rep: Reputation: 0
How to program shell script to automate mass user account creation?


Hi guys,
Im currently using Suse Linux 9.0 and is trying to program a script that automatically creates 100 user accounts with encrypted passwords. An example of an account would be
Login name : User00
password : pass00
UID : 1000
GID : 747
Home dir : /home/user00
Shell : /bin/sh

Isit possible to script such a task? How do i go about doing it?
Sorry guys im new to linux and still learning the ropes and i really need help on this issue. Any help would be apprieciated. THX!
 
Old 06-29-2007, 06:15 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
There is more than one way to do it.
The adduser and expect commands are there to help you.
 
Old 06-30-2007, 09:41 AM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed on Mass user creation using shell script EsAsher Linux - General 3 06-30-2007 12:26 AM
Automate user account creation bczm8703 Programming 6 06-12-2007 10:20 PM
Rhythmbox- Writing a Program to Automate Playlist Creation RevenantSeraph Linux - Software 1 04-16-2007 03:39 AM
Automate FTP session using Shell Script kalyanofb Programming 2 04-07-2007 09:44 AM
permissions for user account screwed up after mass system upgrade Mr.Ampersand() Linux - Software 1 08-21-2006 02:58 AM


All times are GMT -5. The time now is 04:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration