Results 1 to 2 of 2
Hi,
Can we set password for linux board's in non-interactive mode.
I didn't find suitable option for this in man page....
- 12-01-2010 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 1
Set password in single command
Hi,
Can we set password for linux board's in non-interactive mode.
I didn't find suitable option for this in man page.
- 12-01-2010 #2
What do you mean with "linux boards"?
Do you want to set the password for users in non-interactive mode? For that you could runwhere password-hash is a crypt hash and user the username.Code:usermod -p password-hash user
But this is no recommended at all because the password hash might be saved in some bash history files and other users listening the running processes might catch it. Because the password is hashed they wouldn't get the plaintext password but sometimes a hash is enough if the password is weak.


Reply With Quote