sudo -i does not execute zsh properly

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content