Different Bash prompts after switching user

1 post / 0 new
#1 Tue, 12/17/2019 - 16:19
gscerb

Different Bash prompts after switching user

I have two servers: server1 and server2

Both have: Virtualmin...Administrative Options...Edit Owner Limits...Server Owner Limits

Allowed login type: Email, Ftp, SSH

Chroot jail domain Unix user: yes

When I "su server1" I get a bash prompt

When I "su server2" I get and error message and different prompt.

[root@host ~]# su server1

bash-4.2$

[root@host ~]# su server2

bash: /usr/bin/id: No such file or directory

bash: /usr/bin/id: No such file or directory

[server2@host ~]$

Why do I get the two different prompts?