As 4merAvaya stated, you need to log in and su to root.
The -df flags will delete the user's password, when the user logs in after this command is executed, they need to leave the password field blank. CMS will then force them to change it when they log in for the first time.
The security policies at companies vary, but I'm not allowed to leave a password blank. If this is the case at your company, you can do the following:
Execute the command: passwd [user login] (ie: passwd jsmith)
The system will prompt you to enter a new password for the user, then ask you to confirm it. When set, it will confirm that the password has been changed. You can use something simple like cms followed by the date you reset it (ie: cms1209)
Then you can execute the password command again, using the -f flag: passwd -f jsmith
This will force jsmith to reset the password when he logs in.
You can also just set the password and provide it to the user by not executing the command with the -f after setting it. But that's almost guaranteed to be against almost any company's security policy. But, it is an option.
- Stinney
“The man who asks a question is a fool for a minute, the man who does not ask is a fool for life.” - Confucius
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.