Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Account creation with default password

Status
Not open for further replies.

ranjit

Technical User
Apr 14, 2000
131
GB
Hello,

I'd like to create an account on a Solaris server with a default password. How can this be scripted?
 
Look into a scripting tool/lang called expect. You can down load it from sunfreeware.com
 
Alternatively you could use sed or similar to automatically update /etc/shadow with the encrypted password.

Annihilannic.
 
There are already existing scripts (provided with Solaris) to add user accounts and groups. Please see the man pages for:
useradd
usermod
userdel
groupadd
groupmod
groupdel

useradd does not set a password by default. The account is created with a null/empty password.

I hope that helps.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top