Welcome! Log In Create A New Profile

Advanced

Bug - auto/unix incorrectly detects nobody group

July 12, 2011 03:53PM
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 line:

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

Sean Carley
Subject Author Posted

Bug - auto/unix incorrectly detects nobody group

scarley July 12, 2011 03:53PM

Re: Bug - auto/unix incorrectly detects nobody group

Maxim Dounin July 12, 2011 05:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 248
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready