Sudo behaviour changed for SIGHUP in Red Hat Enterprise Linux 6.3

Solution Verified - Updated -

Issue

  • 'nohup' no longer protects sudo process from being killed upon exit as of version 1.7.4p5-11.el6.x86_64 compared to version 1.7.2p2-9.el6.

Example

[test@host ~]# cat > /tmp/test.sh
#!/bin/sh

sleep 300 &


[test@server ~]$ ssh -t test@server "nohup sudo /tmp/test.sh"
Password:
nohup: ignoring input and appending output to `nohup.out'
Connection to server closed.

[test@server ~]$ ps -ef|grep sleep
test    760 29080  0 15:45 pts/4    00:00:00 grep sleep

Environment

  • Red Hat Enterprise Linux (RHEL) 6.3
  • sudo-1.7.4p5-11.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