![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| To give the "unzip" permissions & "create" file permissions | Mike1234 | HP-UX | 3 | 03-02-2008 05:34 PM |
| communicating wth another user aside from "wall" and "write" | Deanne | Shell Programming and Scripting | 6 | 05-11-2007 06:43 AM |
| Unix "at" / "Cron" Command New Problem...Need help | Mohanraj | UNIX for Dummies Questions & Answers | 3 | 01-26-2006 08:08 PM |
| Create new user with exisiting "id" | miredale | UNIX for Dummies Questions & Answers | 2 | 01-25-2006 07:17 AM |
| "ap" command not dumping user profiles | rm -r * | UNIX for Dummies Questions & Answers | 0 | 08-31-2005 12:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Want to create new users without using "useradd" command and user Interaction.
Don't want to use useradd command to create a new user
I am doing manual addition of accounts. Actually I am writing a script and I am working on RedHat7.1 system. What I am trying to do is run the script and pass all the values of the username password and group as command line parameters. Now what I am trying to do is after passing the initial password I want the account to be activated with that password. Because if you simply edit the passwd file and add the username, password and other information when you test the account it does not recognize the account and then as a root user you have to go and enter the password again and then it gets written to the shadow file in encrypted form(even if you use command "pwconv" does not write the password to the shadow file in the encrypted form). Plus I can't leave the acconts open either. To create 500 account or more It will take me a long time to create those accounts. I just want to automate those password writing to the shadow file without having to go through this command passwd "username" enter new password in Unix ****** So, if anyone knows how can I do this through the script please let me know. regards Last edited by syedifti; 10-06-2001 at 04:15 PM.. |
|
||||
|
use the useradd program as it was intended to do. the only problem your haveing is adding in a default password.
man passwd there should be a switch to set the password to blank & prompt the user to enter in a password @ first login. OR use useradd to add the users. then edit the new entries in the shadow file w/ a default password salt. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|