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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.