How I can change the prompt for `sudo` after executing `sudo -s` in Red Hat Enterprise Linux ?

Solution Verified - Updated -

Issue

  • After logging in as Normal user in Red Hat Enterprise Linux 6 machine, and executing sudo -s getting the prompt root($host) <(pwd).
  • The desired prompt should be SUPERUSER($host) <(pwd)

Environment

  • Red Hat Enterprise Linux 6.4
  • sudo-1.8.6p3-7.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