Password problem after creating a new user

8,456

I would suggest taking NlightNFotis' advice: open a terminal and type

sudo passwd <user>
Share:
8,456

Related videos on Youtube

rainlover
Author by

rainlover

“merge keep” and "merge delete"

Updated on September 18, 2022

Comments

  • rainlover
    rainlover over 1 year

    I created a new user account and when I try to login to that account by switching accounts it said wrong password. I searched here and found my answer here - Create a new user in 12.04?

    Now when I clicked enable this account and I don't know what happened from then.. now I'm with a problem that ubuntu don't recognising my password. It's saying there's no password set but when I'm clicking it it's asking for old password.

    enter image description here

    • Nate
      Nate over 11 years
      What happens if you leave the current password field blank?
    • rainlover
      rainlover over 11 years
      Nothing. That 'Change' button still faded or inactive.
    • SirCharlo
      SirCharlo over 11 years
      I guess dropping to a root shell would be overkill..
    • Aaron
      Aaron over 11 years
      @SirCharlo that's what I was going to suggest, too.
    • NlightNFotis
      NlightNFotis over 11 years
      Can't you just sudo passwd <user>? Just asking.
    • rainlover
      rainlover over 11 years
      @NlightNFotis That then saying - [email protected]:~$ sudo passwd <user> bash: syntax error near unexpected token `newline' [email protected]:~$
    • rainlover
      rainlover over 11 years
      I'm going to try that 'dropping to a root shell'. I hope that'll work or I'll have no option but to install windows.
    • rainlover
      rainlover over 11 years
      Man, it doesn't asked for password. I restarted but coz another user was logged in (I'm guessing) ubuntu took me to login screen. There was just 'log-in' to press and no field to enter password. But when I've to change setting in user accounts it's asking for password. However I'm administrator.
    • Dan
      Dan over 11 years
      @rainlover while trying to do what @NlightNFotis said, you need to replace <user> with YOUR username. Do not keep the < and > symbols. And finally if your username contains special characters (Not sure if this is possible, never tried it), then you have to put quotes around your username. For example: sudo passwd "dan"
  • NlightNFotis
    NlightNFotis over 11 years
    Yeah, this way you are super user(root) authorized to change <user>'s password to your liking. There is a problem however if you are not in the sudoer's group and have no account with access to sudo commands.
  • NlightNFotis
    NlightNFotis over 11 years
    I would upvote this, but for some strange kind of fashion, I have reached my daily upvoting limit.