LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 11-08-2012, 07:18 PM   #1
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Rep: Reputation: Disabled
Kubuntu 12.04 Permission Denied errors when starting up


When I boot up my computer, and enter my encryption key, I always get these errors:
Code:
Unlcoking the disk /dev/disk/by-uuid/6e270a39-52ff-4db3-9676-41feae30037 (sda5_crypt)
Enter passphrase:
cryptsetup: sda5_crypt set up successfully
fsck from util-linux 2.20.1
fsck from util-linux 2.20.1
/dev/sda1: clean, 251/124496 files, 168770/248832 blocks
/dev/mapper/sda5_crypt: clean, 236020/45776896 files, 24057030/183080192 blocks
udev[895]: failed to execute '/sbin/modprobe' '/sbin/modprobe -bv input:b0019v0000p0000ee0000-e0,3,kra0,1,2,mlsfw': Permission denied

mountall: mount / [896]: Permission denied
udevd[895]: failed to execute '/lib/udev/accelerometer' 'accelerometer /devices/platform/lis31vo2d/input/inputt12/js0': Permission denied

udevd[898]: failed to execute '/lib/udev/accelerometer' 'accelerometer /devices/platform/lis31vo2d/input/input12/event12': Permission denied

udevd[904]: failed to execute '/lib/udev/udisks-part-id' 'udisks-part-id /dev/sda1': Permission denied

[  24.576881] Bad LUN (0:1)
[  24.577017] Bad target number (1:0)
[  24.577181] Bad target number (2:0)
[  24.577311] Bad target number (3:0)
[  24.577440] Bad target number (4:0)
[  24.577570] Bad target number (5:0)
[  24.577688] Bad target number (6:0)
[  24.577728] Bad target number (7:0
udevd[906]: failed to execute '/lib/udev/scsi_id' 'scsi_id --export --whitelisted -d /dev/sdb': Permission denied

udevd[907]: failed to execute '/sbin/blkid' '/sbin/blkid -o udev -p /dev/sdb': Permission denied

udevd[908]: failed to execute '/lib/udev/udisks-part-id' 'udisks-part-i /dev/sbd': Permission denied

udevd[909]: failed to execute '/lib/udev/hdparm' '/lib/udeb/hdparm': Permission denied

udevd[910]: failed to execute '/lib/udev/scsi_id' 'scsi_id --export --whitelisted -d /dev/sdb': Permission denied

udevd[911]: failed to execute '/sbin/blkid' '/sbin/blkid -o udev -p /dev/sdb': Permission denied

udevd[9012]: failed to execute '/lib/udev/udisks-part-id' 'udisks-part-i /dev/sbd': Permission denied
From here it just hangs. Is there any way to fix this problem without reinstalling?
 
Old 11-16-2012, 11:04 PM   #2
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
bump
 
Old 11-17-2012, 03:10 AM   #3
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by Predictability View Post
From here it just hangs. Is there any way to fix this problem without reinstalling?
I'm not sure if this will help, but here is how to recover an encrypted Ubuntu home directory so you can at least access your data:
http://www.howtogeek.com/116297/how-...ory-on-ubuntu/
Also, perhaps these will help:
https://help.ubuntu.com/community/EncryptedFilesystems
https://help.ubuntu.com/community/EncryptedHome
This is why I have always avoided using encryption on my Ubuntu installs. It seems to cause more problems than it is worth.

And welcome to the LQ forums!

Last edited by tommcd; 11-17-2012 at 03:13 AM.
 
Old 11-23-2012, 08:18 PM   #4
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tommcd View Post
I'm not sure if this will help, but here is how to recover an encrypted Ubuntu home directory so you can at least access your data:
http://www.howtogeek.com/116297/how-...ory-on-ubuntu/
Also, perhaps these will help:
https://help.ubuntu.com/community/EncryptedFilesystems
https://help.ubuntu.com/community/EncryptedHome
This is why I have always avoided using encryption on my Ubuntu installs. It seems to cause more problems than it is worth.

And welcome to the LQ forums!
I'm able to access my files with a live cd, but I don't want to use a live cd and install everything I need every time I boot.
 
Old 11-24-2012, 02:21 AM   #5
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Well, according to this thread: http://www.kubuntuforums.net/showthr...en-starting-up
Quote:
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.

Last edited by tommcd; 11-24-2012 at 02:35 AM.
 
Old 11-24-2012, 07:01 AM   #6
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by tommcd View Post
Well, according to this thread: http://www.kubuntuforums.net/showthr...en-starting-up

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 View Post
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 View Post
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.
 
Old 11-25-2012, 07:24 PM   #7
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
bump
 
Old 11-25-2012, 10:56 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
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:

https://help.ubuntu.com/community/RootSudo

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??
 
Old 11-26-2012, 03:02 AM   #9
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
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:

https://help.ubuntu.com/community/RootSudo

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.
 
Old 11-26-2012, 09:35 AM   #10
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,503

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
He activated the root account so that he could safely remove me from sudoers
Why would you want him to do that? Is this not your computer?

Quote:
otherwise the computer would be stuck with no accounts with superuser capabilities.
He could have added a different user to the sudoers file??
 
Old 11-26-2012, 07:01 PM   #11
Predictability
LQ Newbie
 
Registered: Nov 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by yancek View Post
Why would you want him to do that? Is this not your computer?
It's not my computer.


Quote:
Originally Posted by yancek
He could have added a different user to the sudoers file??
It's easier just to activate the root account. The root account wasn't going to be used for anything except putting me back in the sudoers file later.
 
Old 11-26-2012, 11:13 PM   #12
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
Quote:
Originally Posted by Predictability View Post
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 View Post
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!

Last edited by tommcd; 11-26-2012 at 11:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync Permission denied errors. KroniK Linux - Networking 3 08-13-2012 12:39 PM
Audit permission denied errors jaco0667 Linux - Security 5 06-17-2008 04:27 AM
Getting permission denied errors with NFS triley Linux - General 1 08-24-2006 04:39 PM
Starting Tomcat from Eclipse - Permission denied robbbert Programming 1 06-30-2006 04:23 AM
./configure errors: permission denied! TippExed Linux - Software 4 09-10-2002 10:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 08:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration