Sometimes I impress myself with my ability to screw things up: I changed the default shell of root with the chsh command, problem is I forgot to put in the full path. Now I can't log in as root. Is there a file somewhere that I can edit to change roots' default shell?
|
feedback
|
|
Yes, it's in | |||||||||
feedback
|
|
The shell for an user is specified in
In this case, the shell is Of course, you will have to log in as root in order to edit it, which in your case could be... difficult. If you have other user accounts on the system, you can log in as one of them and then use | |||
|
feedback
|
|
You can edit the
| |||
|
feedback
|
|
If it's a VPS, ask the company to shut down the VM and mount your partition from Domain0 and modify yout /etc/passwd file (I guess they are providing VM on Xen). | |||
|
feedback
|