sudo -i does not execute zsh properly
Issue
When running sudo -i, I no longer get proper shell, see the prompt:
[user@server ~]% sudo -i
#
I have to re-execute zsh, such as
[user@server ~]% sudo -i zsh
[root@server ~]#
The change in behavior was triggered by having enabled selinux and a restrictive set of selinux booleans.
Environment
- Red Hat Enterprise Linux (RHEL) 6.5
- sudo-1.8.6p3-12.el6.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.