LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 05:15 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,596

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

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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



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-29-2007 11:26 PM
Automate user account creation bczm8703 Programming 6 06-12-2007 09:20 PM
Rhythmbox- Writing a Program to Automate Playlist Creation RevenantSeraph Linux - Software 1 04-16-2007 02:39 AM
Automate FTP session using Shell Script kalyanofb Programming 2 04-07-2007 08:44 AM
permissions for user account screwed up after mass system upgrade Mr.Ampersand() Linux - Software 1 08-21-2006 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:24 PM.

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
Open Source Consulting | Domain Registration