Bug - auto/unix incorrectly detects nobody group

scarley nginx-forum at nginx.us
Tue Jul 12 23:53:10 MSD 2011

In auto/unix (line 9 in 1.0.4) the pattern for detecting the nobody
group is not anchored properly and will incorrectly detect the group
nobody if the nobody user is in one of the listed groups.  E.G. if
"nagcmd:x:114:nagios,nobody" appears in the file.

This is easily fixed by anchoring the grep regex to the beginning of the

        if grep ^nobody /etc/group 2>&1 >/dev/null; then

Sean Carley

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,212302,212302#msg-212302

More information about the nginx mailing list