Kubuntu 12.04 Permission Denied errors when starting up
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My brother removed me from sudoers and set a root password. He also ran "sudo chmod -r" on some of games in /home.
This is likely why you are having problems. Using the root account is not recommended in Ubuntu. I have been using Ubuntu since the inaugural version 4.10 and I have never enabled the root account because there is no need for it. However, I suspect that removing your user name from the sudoers list may be the problem here.
It is also possible that whatever files your brother changed permissions on may have messed things up. Changing permissions of files in your home directory is usually safe though. However, I have never used an encrypted home directory, so perhaps if there are now files in your home directory that you no longer have ownership of, then this could be a problem as well. Enabling the root account, by itself, probably is not the problem here.
See this to try to restore your account to the sudoers list: http://www.psychocats.net/ubuntu/fixsudo
Also, if your brother can remember what files he changed permissions on, perhaps try changing them back if he remembers what the original permissions were.
Other than that, I am not sure what else you could do other than backup your data and reinstall Ubuntu. Sometimes this is the price you pay for an education.
This is likely why you are having problems. Using the root account is not recommended in Ubuntu. I have been using Ubuntu since the inaugural version 4.10 and I have never enabled the root account because there is no need for it. However, I suspect that removing your user name from the sudoers list may be the problem here.
He never logged in as root, he just ran "sudo passwd root" to change it so that the computer wouldn't have no admins once I was no longer in sudoers.
Quote:
Originally Posted by tommcd
It is also possible that whatever files your brother changed permissions on may have messed things up. Changing permissions of files in your home directory is usually safe though. However, I have never used an encrypted home directory, so perhaps if there are now files in your home directory that you no longer have ownership of, then this could be a problem as well. Enabling the root account, by itself, probably is not the problem here.
Only a few folders like Videos, Games, Music, etc but no "." files and nothing outside home. Also, I don't have an encrypted home directory, the whole disk is encrypted so it's transparent to the OS.
Quote:
Originally Posted by tommcd
See this to try to restore your account to the sudoers list: http://www.psychocats.net/ubuntu/fixsudo
Also, if your brother can remember what files he changed permissions on, perhaps try changing them back if he remembers what the original permissions were.
Other than that, I am not sure what else you could do other than backup your data and reinstall Ubuntu. Sometimes this is the price you pay for an education.
But it won't boot up, even in recovery mode. That's why I think that it's weird that I'm getting "permission denied" errors before I even try to log in, so I doubt it has to do with me not being in the sudoers.
He never logged in as root, he just ran "sudo passwd root"
Entering that in a terminal in Ubuntu enables the root account. Take a look at the link below under root account. Just below this explanation, it tells you how to disable the root account. The link below has some useful info if you are going to be using Ubuntu:
I have an Ubuntu installation but use it infrequently so I'm not sure what the problem is. I don't really see how enabling a root account would prevent booting at all??
Entering that in a terminal in Ubuntu enables the root account. Take a look at the link below under root account. Just below this explanation, it tells you how to disable the root account. The link below has some useful info if you are going to be using Ubuntu:
I have an Ubuntu installation but use it infrequently so I'm not sure what the problem is. I don't really see how enabling a root account would prevent booting at all??
He activated the root account so that he could safely remove me from sudoers, otherwise the computer would be stuck with no accounts with superuser capabilities.
He activated the root account so that he could safely remove me from sudoers, otherwise the computer would be stuck with no accounts with superuser capabilities.
You need to understand that you and your brother (and whoever else may or may not be involved here since it is not your computer) are fighting the way that Ubuntu works.
As I said before, enabling the root account on Ubuntu is not recommended! !
Quote:
Originally Posted by Predictability
It's easier just to activate the root account.
No, it is not!!! The easiest thing to do is to just leave it alone!!! You should just use Ubuntu the way it is designed to be used. That means that you use sudo for admin privileges and you do not enable the root account and that you do not remove the default user from the sudoers file!!!
When you combine all of this with encryption this likely complicates things even more!!!
As I said before, removing the default user from the sudoers file is not recommended!
Since your brother made all of these changes that messed things up, perhaps you could ask your brother to fix the damage that he has done!
You have been fighting this for some time now! If it were me, I would have bit the bullet long ago and reinstalled Ubuntu. You could have been done with this mess in less than 1 hour with a reinstall.
Sometimes this is the price you pay for an education!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.