Results 1 to 10 of 14
Hi,
I once disabled my login password, and now I would like to set a password again by using the terminal.
So, in the terminal I write:
sudo passwd myuser
...
- 08-24-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 9
setting password after disabling it
Hi,
I once disabled my login password, and now I would like to set a password again by using the terminal.
So, in the terminal I write:
sudo passwd myuser
I'm asked for my current password, but since I don't have one I press enter.
I get: Sorry,try again....
What's the correct way of doing this?
Thanks.
- 08-24-2010 #2Linux Newbie
- Join Date
- Apr 2007
- Posts
- 119
Try using "su" or logging on as root and then using the "passwd myuser"
- 08-24-2010 #3Just Joined!
- Join Date
- Aug 2010
- Posts
- 9
"su" gives the same results as sudo, and I understand that logging in as root is a pain...
Isn't there a simple solution to this?
- 08-24-2010 #4You do not need to be root, use just plain passwd command from your user terminal.So, in the terminal I write:
sudo passwd myuser
- 08-24-2010 #5
passwd won't work afaik when there is no password specified for the "current password" part of changing your password
running with sudo or as root will fix this, if you can't gain access to either of these, you should be able to boot into single user mode and set your password there
How to reset your password in Ubuntu
- 08-24-2010 #6Linux Newbie
- Join Date
- Apr 2007
- Posts
- 119
- 08-24-2010 #7
OP didn't say he disabled his account, he disabled the password associated with his account. su requires user password, if it does not exist it won't work.
- 08-24-2010 #8Just Joined!
- Join Date
- Aug 2010
- Posts
- 9
- 08-24-2010 #9
OP said "login password". Are we talking about just when you login to your desktop, ie, at the login display when you put in your username and password? In which case the passwd command has nothing to do with it.
EDIT: Slow on the draw and I guess not.
- 08-24-2010 #10Linux Newbie
- Join Date
- Apr 2007
- Posts
- 119


Reply With Quote
