Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.