Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On the "User Accounts" settings in Linux Mint, I changed the settings so that the Admin account didn't require a password.

To change any settings I have to click the unlock button and type in a password. However, as I removed the password for the only account I now cannot change the settings.

How can this be fixed?

share|improve this question
up vote 1 down vote accepted

Boot with the liveCD, or perphaps you have a "recovery mode" entry on your grub, perphaps you can login to root account. Else do it with the LiveCD/DVD. Now that you are logged as root, you can use the root account to edit /etc/sudoers:

#Look for something like this 
root    ALL=(ALL)       ALL 
someoneigna ALL=(ALL) ALL #Add yourself below

Add your user, save. Now reboot, login to your account, and change the root account password using sudo passwd root:

[someoneigna@FedoraX2 ~]$ sudo passwd root
[sudo] password for someoneigna: 
Changing password for user root.
New password: 
Retype new password: 
passwd: all authentication tokens updated successfully.

It is insecure to leave the root account without password, and you should not use root all the time. If you want to do things without typing the root account password, just add yourself to the root group in /etc/group.

share|improve this answer
I realised that I still had the root account and I knew the password so I only had to do the second part. Thanks for you help! – braza Dec 21 '12 at 17:46
No problem, have a nice end of the world day! ^_^ – someoneigna Dec 21 '12 at 18:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.