Skip to content

TROUBLESHOOTING Wrong shell with admin

Why do that

When your user/admin has a wrong shell like :

1
2
3
4
5
6
7
user@hostname:~/punchplatform-datamanagement-1node-5.1.0/roles$ sudo su punchadmin
$ 
$ 
$ 
$ 
$ 
$ ls

Error

It's because you have a bad root shell in /etc/passwd

What to do

Just key in :

1
bash

And it should resolve the problem :

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
user@hostname:~/punchplatform-datamanagement-1node-5.1.0/roles$ sudo su punchadmin
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ bash
admin@hostname:/home/ubuntu/punchplatform-datamanagement-1node-5.1.0