Ask Your Question
0

'change directory failed: Permission denied' why this?

asked 2014-02-09 06:10:07 -0600

mohanprakash gravatar image

updated 2014-02-11 22:32:24 -0600

FranciscoD_ gravatar image

There is a prompt for root password for maintenance whenever I start Fedora. When I enter the root password I get the following message: sulogin: /root: change directory failed: Permission denied

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-02-09 09:48:51 -0600

Marc lml gravatar image

The folder /root is the homedrive of root and this is the starting folder when logging in. It sounds like that the folder is not accessible. It could be that the folder /root does not exist or that the permissions or ownership is not right. These are the rights and owner of my /root, which are the defaults.

dr-xr-x---. 8 root root 4096 Feb  9 16:41 /root

If this is not right, then you could use these commands to change it to the default.

Change permissions: chmod 550 /root

Change owner: chown root:root /root

However, I suspect that the entire folder /root is not available, as it seems unlikely that you have changed permissions or ownership of this folder.

edit flag offensive delete link more

Comments

actually there is a prompt for root password at start up. So without logging in as root I can not proceed further. When I give root password, the above error is shown. So the maintenance process does not start at all and neither can I log in. It seems I have to run fsck manually. There may be some problem with the hard disk. Sometimes there is also the message for running fsck manually.

mohanprakash gravatar imagemohanprakash ( 2014-02-11 22:25:38 -0600 )edit

You need to fix your system. You shouldn't be dropped to an emergency shell at all.

FranciscoD_ gravatar imageFranciscoD_ ( 2014-02-11 22:33:00 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-02-09 06:10:07 -0600

Seen: 4,276 times

Last updated: Feb 09 '14