LinuxQuestions.org
Review your favorite Linux distribution.
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 08-06-2007, 02:36 AM   #1
mfaisalkh
LQ Newbie
 
Registered: Mar 2004
Location: karachi
Posts: 3

Rep: Reputation: 0
Post User Creation Script


Dear Allz,

My mail Serve ris running on RHEL4.

I add user from the following command:

useradd -s /sbin/nologin -d /export/home/userid userid

/export/home is partition name where user home's are presents.

Now set the password from the following command:

passwd userid.

My default passwd is 'cyber'.

Now i want a script that add user automatically after asking userid & set passowrd 'cyber' automatically too.
 
Old 08-06-2007, 03:57 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,383
Blog Entries: 55

Rep: Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558Reputation: 3558
Now i want
Did you try searching LQ for terms like "useradd script"?


set passowrd 'cyber' automatically too
...and thanks for letting us know your standard passowrd.
IMNSHO scripting a std passowrd is a bad decision.

Last edited by unSpawn; 08-06-2007 at 03:59 AM.
 
  


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
Problem with password creation for multi user script EsAsher Linux - General 10 07-23-2007 04:02 PM
How to program shell script to automate mass user account creation? EsAsher Linux - General 2 06-30-2007 08:41 AM
Help needed on Mass user creation using shell script EsAsher Linux - General 3 06-29-2007 11:26 PM
mysql user creation script tanveer Linux - Server 2 06-20-2007 01:21 AM

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

All times are GMT -5. The time now is 12:13 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