LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 02: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, 02:48 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well what do you want it to do??
 
Old 10-13-2002, 03: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



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

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:23 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
Open Source Consulting | Domain Registration