Move root’s home dir from / to /root
Here are the step by step (maybe to script soon):
Open a console connection to the box and log into it. Just leave it there for emergency.
from SSH login
cd
pwd
mkdir /root
ls -la
rm .profile.orig
mv .forward .profile .rhosts .sh_history .ssh .Xauthority /root/
mail -f mbox
mail -f mbox
rm mbox
ls -la
vi /etc/passwd
SSH in again and see if it works.
Log off and back on at console to make sure it works.
pwd
whoami
