Root password changed after removing main account password
Hello. I recently removed password from the main (and only) account. The thing is, while I can log on no problem, I cannot access root commands. When I try to do anything with "sudo" at the beginning, the terminal asks me for a password, and the one I was using before doesn't work. I thought it switched to some default, but when I changed root password by these instructions
http://blog.zwiegnet.com/linux-serve...rd-linux-mint/ it returned success, but after rebooting and logging in to my account, I discovered that nothing changed, I still can't use sudo. Does anyone know what happened and what can I do to fix it? |
Hi, and welcome to LQ!
I think you are a little bit confused here: The root account and your personal account are two different accounts. With sudo you are to type in your own password - nott root's (actually, this is configurable but this is Mint default.) So when you reset root password, it doesn't change anything concerning your usage of sudo. Removing a password, which actually is making it blank, is not a good idea. Several authentication methods do not accept blank passwords, as you now have noticed. So, solution is to set your own password to something, (or you could use "su -" to switch to root account in a terminal). |
Thanks for your reply, and for the "su -" thing, I didn't know that before. My main problem was the fact that it would ask me for a password when I tried to set it for my passwordless account, but thanks to you I was able to figure it out using root.
|
All times are GMT -5. The time now is 09:25 AM. |