Skip to content

TROUBLESHOOTING Wrong shell with admin

Why do that

When your user/admin has a wrong shell like :

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 :

bash
And it should resolve the problem :

user@hostname:~/punchplatform-datamanagement-1node-5.1.0/roles$ sudo su punchadmin
$ 
$ 
$ 
$ 
$ 
$ 
$ 
$ bash
admin@hostname:/home/ubuntu/punchplatform-datamanagement-1node-5.1.0