root can not login

General support questions including new installations
Post Reply
luiscndhz
Posts: 10
Joined: 2011/05/31 15:14:53
Location: La Paz, Bolivia

root can not login

Post by luiscndhz » 2014/03/19 22:01:03

Hi, today I have tried to access as root to our server Centos 5.5 64b and after typing the password the next message is showed:

'Your home directory is listed as /home/root , but it does not appear to exist'

I can not get access to the server when this happens, I was trying rebooting and trying different things like an hour, but while I have been writing this post this issue has fixed. But I would like to know why this happens.

Regards

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: root can not login

Post by TrevorH » 2014/03/19 22:51:04

Someone changed it from the default of /root to /home/root but forgot to create the directory.

Next time, boot in single user or emergency mode and fix it from there.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

luiscndhz
Posts: 10
Joined: 2011/05/31 15:14:53
Location: La Paz, Bolivia

Re: root can not login

Post by luiscndhz » 2014/03/19 22:56:34

TrevorH wrote:Someone changed it from the default of /root to /home/root but forgot to create the directory.

Next time, boot in single user or emergency mode and fix it from there.
:o
Nobody except me can get access to this server, by the way where is the set up you mention?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: root can not login

Post by TrevorH » 2014/03/19 23:23:45

To get into single user mode you can follow the first part of http://wiki.centos.org/TipsAndTricks/ResetRootPassword
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply