sudo command listed in ps and pstree output

Solution Verified - Updated -

Issue

  • On RHEL 5.6 with sudo-1.7.2p1-10.el5 (and earlier), the pstree only shows the command being run by sudo:

    [root@localhost ~]# sudo -u ralph sleep 3 & sleep 1; pstree -paul $!
    [1] 1829
    sleep,1829,ralph 3
    
  • But on RHEL 5.8 with sudo-1.7.2p1-13.el5 (and newer) the sudo process also shows up in the pstree:

    [root@localhost ~]# sudo -u ralph sleep 3 & sleep 1; pstree -paul $!
    [1] 24005
    sudo,24005 -u ralph sleep 3
      └─sleep,24007,ralph 3
    
  • Likewise, on RHEL 6.0 with sudo-1.7.2p2-9.el6:

    [root@localhost ~]# sudo -u ralph sleep 3 & sleep 1; pstree -paul $!
    [1] 25451
    sleep,25451,ralph 3
    
  • But after upgrading to RHEL 6.1 with sudo-1.7.4p5-5.el6 (and newer):

    [root@localhost ~]# sudo -u ralph sleep 3 & sleep 1; pstree -paul $!
    [1] 25513
    sudo,25513 -u ralph sleep 3
      └─sleep,25516,ralph 3
    

Environment

  • Red Hat Enterprise Linux 5.8 with sudo-1.7.2p1-11.el5 and newer
  • Red Hat Enterprise Linux 6.1 with sudo-1.7.4p5-5.el6 and newer

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