Why does sudo crashes with "sudo[ ]: segfault at 8 ip 00007fc7ebf23db2 sp 00007fffbcc0d290 error 4 in sudoers.so" in Red Hat Enterprise Linux 6?

Solution Verified - Updated -

Issue

  • While running the sudo command with the -g command, 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 xsight option 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-xps file contents:
%xsight ALL = (xsrun:xsight) NOPASSWD: ALL

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