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.