Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, I want to know how to change a password to an user account. Can someone give me the syntax on how to do this? I was using usermod but ...
  1. #1
    Just Joined!
    Join Date
    Nov 2008
    Posts
    7

    Change password?

    Hi,

    I want to know how to change a password to an user account. Can someone give me the syntax on how to do this? I was using usermod but it's not working (usermod -p 123456 user1). Is there other way beside usermod? I am using RHEL5.

    Thanks,
    Allen

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Code:
    passwd user1
    You must have root privileges to change password of other users. If you want to change your own password, execute passwd command without user_id.
    Code:
    passwd
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux User
    Join Date
    Jun 2007
    Posts
    318
    Also, the reason why usermod isn't working is because you have to pass the password encrypted. Here's a thread that was about it.

    http://www.linuxforums.org/forum/lin...-password.html

  4. #4
    Just Joined!
    Join Date
    Nov 2008
    Posts
    7
    Thanks guys for your input!
    Allen

Posting Permissions

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