PortyMan
Programmer
- Jul 13, 2004
- 3
Hi,
I'm looking to 'automate' the adding of new users. Essentially I want a script that will create the user with appropriate home directory, shell process, group id, etc, then create their initial password (using userid as initial password) and then set their password to be reset on first use.
The only real problem is just how to set the script to answer the 'enter password' and 're-enter password' prompts when executing 'passwd userid'?
I'm using a Sun Solaris system.
Any help gratefully received...
G
I'm looking to 'automate' the adding of new users. Essentially I want a script that will create the user with appropriate home directory, shell process, group id, etc, then create their initial password (using userid as initial password) and then set their password to be reset on first use.
The only real problem is just how to set the script to answer the 'enter password' and 're-enter password' prompts when executing 'passwd userid'?
I'm using a Sun Solaris system.
Any help gratefully received...
G