I would like to set the passwd for newly created users using remsh to all systems. How can I pass the password using remsh to the remote system to issues the command passwd <username>? I am trying in my script
This might be better suited for the C++:UNIX forum.
I don't think it's possible to use passwd to change a password automatically since that would be a security hole. You need to type the new password on the keyboard.
There are probably some UNIX system calls that you can call to change the password since some programs are able to do it, but I haven't got a clue what those functions are?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.