Why does sudo crashes with "sudo[ ]: segfault at 8 ip 00007fc7ebf23db2 sp 00007fffbcc0d290 error 4 in sudoers.so" in Red Hat Enterprise Linux 6?
Issue
-
While running the
sudocommand with the-gcommand, it exits with a segmentation fault on Red Hat Enterprise Linux (RHEL)6.5 and Red Hat Enterprise Linux (RHEL)6.7 -
Segmentation fault seen with this command:
# sudo -u xsrun -g xsight /bin/ls /
- Issue is not observed if
-g xsightoption is not used.
Environment
- Red Hat Enterprise Linux 6.7
- sudo-1.8.6p3-15.el6.x86_64
- Following commands were executed to set up a users:
# /usr/sbin/groupadd --gid 1000 xsight
# /usr/sbin/useradd --home /home/xsight --comment "xSIGHT user" --gid 1000 -m --password '$1$434343$343234.' --shell /bin/bash --uid 1000 xsight
# /usr/sbin/useradd --home /home/xsrun --comment "xSIGHT xsrun user" --gid 1000 -m --password '*' --shell /sbin/nologin --uid 1002 xsrun
# sed -i "s/xsight:x:1000:$/xsight:x:1000:xsight,xsrun/" /etc/group
- The
/etc/sudoers.d/01-xpsfile contents:
%xsight ALL = (xsrun:xsight) NOPASSWD: ALL
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
