Error : Could not chdir to home directory /root: No such file or directory

You get the following error when logging in to the server

Could not chdir to home directory /root: No such file or directory

 

Reason :

/root home directory does not exist or deleted by you or someone.

 

Solution :

Create the folder and set permission

# mkdir /root
# chown root:root /root
# chmod 0700 /root

 

Now, disconnect and reconnect. It should work fine.
Contact support@rdparena.com if you still face issues.

  • ubuntu, centos, error, /root, no such file or directory, chdir
  • 103 Users Found This Useful
Was this answer helpful?