The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SSH prompts password for non identical users vjkatsun UNIX for Advanced & Expert Users 5 06-02-2008 02:18 AM
Modify Perl script to work with txt - Permissions script joangopan Shell Programming and Scripting 1 09-13-2007 12:38 AM
Have users changed their password annemar UNIX for Dummies Questions & Answers 6 09-20-2006 05:18 AM
list the password settings for all the users irasela UNIX Desktop for Dummies Questions & Answers 3 08-17-2006 03:40 PM
Setting password restrictions for all users drathbone UNIX for Dummies Questions & Answers 2 03-03-2006 08:02 PM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 08-15-2007
paqman paqman is offline
Registered User
  
 

Join Date: Jul 2007
Posts: 21
Modify users password via script?

Ok, first off, I'm working on a Vmware ESX server, which I guess is loosely based off of Red Hat 9. But I'm brand new to it (today), so be nice.

I'm trying to write a useradd script that will create some users, generate a password, and set their password to this newly generated password.

Now by hand, I can use the useradd command, and then use passwd to change their password. But if I've got to set up a couple hundred users, this is not enjoyable.

So if I can't use passwd in a script (because it requires user interaction), how can I create these users with some default password?
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This 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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 12:30 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0