Sudo behaviour changed for SIGHUP in Red Hat Enterprise Linux 6.3
Issue
- 'nohup' no longer protects
sudo
process from being killed upon exit as of version1.7.4p5-11.el6.x86_64
compared to version1.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.