Asked by duncanb7
at 2024-04-04 06:11:40
Point:500 Replies:6 POST_ID:828580USER_ID:11059
Topic:
PHP Scripting Language;Apache Web Server;Linux
I got one VPS account in my hosting company from which I am able to
enable and disable my server such as, shutdown, reboot , statup function.
At the beginning, when I tried to change my default root directory from
root to my expected directoy like /home/duncan/public_html by eding
the /etc/passwd with chainging as follows
root:x:0:0:root:/root:/bin/bash to root:x:0:0:root:/root:cd /home/dunican/public_html
and reboot the server, after then, I could not access SSH and my account again , Why ?
All reboot, reset password, shutdow, startup VPS is on the hosting comany member area only on its hosting company website only. I only acess my root account through SSH/putty
But now after passwd file editing, I could not access SSH anymore.
How can I access my SSH again, please advise
Duncan
enable and disable my server such as, shutdown, reboot , statup function.
At the beginning, when I tried to change my default root directory from
root to my expected directoy like /home/duncan/public_html by eding
the /etc/passwd with chainging as follows
root:x:0:0:root:/root:/bin/bash to root:x:0:0:root:/root:cd /home/dunican/public_html
and reboot the server, after then, I could not access SSH and my account again , Why ?
All reboot, reset password, shutdow, startup VPS is on the hosting comany member area only on its hosting company website only. I only acess my root account through SSH/putty
But now after passwd file editing, I could not access SSH anymore.
How can I access my SSH again, please advise
Duncan