cd root access denied [closed]
I have set up my root password but when I try and cd to root dir I get:
bash: cd: root: Permission denied
the exact command is:
cd root
sorry I was unclear but the issue is resolved now thanks a lot everyone.=D
Solution 1:
The best thing to do is sudo su
or su
, then cd to /root. You can (if you want) string together commands like this: su -c "cd /root; dostuff"
, but the first way is easier if you need to get into /root.