LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 10-13-2002, 03:47 PM   #1
DAC
LQ Newbie
 
Registered: Oct 2002
Posts: 2

Rep: Reputation: 0
Question Add User Shell Script


Im looking for a good Add User Shell script. Anybody want to share one or could you point me in the right direction.

Thankx
 
Old 10-13-2002, 03:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
well what do you want it to do??
 
Old 10-13-2002, 04:12 PM   #3
FredrikN
Member
 
Registered: Nov 2001
Location: Sweden
Distribution: GNU/Linux since -97
Posts: 149

Rep: Reputation: 15
Well , how would you like it to work ??

Read lines from a file with user-names and passwords ?

One tip is to create a file that looks like somethings like this

-------

user 1 - p abc
user 2 -p def

(and so on)
-----------

and then do a one liner from the shell

cat userfile.txt | awk '{print "adduser " , $0}' | sh

ps. The adduser option can be different on your system, it's not the same for all dist, just check yours with adduser --help or useradd or whatever
 
  


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
Shell Script to add samba users dickohead Programming 11 03-28-2012 07:50 PM
Shell Script: Add Users from file flobadon Programming 3 12-07-2004 04:49 PM
shell script - add file to archive ? xconspirisist Linux - Software 2 03-20-2004 04:27 PM
Add user to Webmin through SHELL? mikeshn Linux - General 1 12-05-2003 03:00 PM
Add a user thorugh SHELL? mikeshn Linux - General 4 01-08-2003 11:31 PM


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