Find the answer to your Linux question:
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....
  1. #1
    Just 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.

  2. #2
    Linux User Manko10's Avatar
    Join Date
    Sep 2010
    Posts
    250
    What do you mean with "linux boards"?
    Do you want to set the password for users in non-interactive mode? For that you could run
    Code:
    usermod -p password-hash user
    where password-hash is a crypt hash and user the username.
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...