Opened 9 years ago

Closed 9 years ago

#47624 closed defect (invalid)

sudo 1.8.13 fails to read sudoers

Reported by: kurthindenburg (Kurt Hindenburg) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: sudo

Description

This works w/ sudo 1.8.8

kurthindenburg ALL=NOPASSWD: /opt/local/bin/port
User kurthindenburg may run the following commands on server:
    (ALL) ALL
    (ALL) NOPASSWD: /opt/local/bin/port

However, after upgrading to sudo 1.8.13, it no longer works

User kurthindenburg may run the following commands on server:
    (ALL) ALL

Change History (6)

comment:1 Changed 9 years ago by neverpanic (Clemens Lang)

Still works fine for me, tested with both

%admin ALL=(ALL) NOPASSWD: /opt/local/bin/port

and

%admin ALL=NOPASSWD: /opt/local/bin/port

Did you put this in /opt/local/etc/sudoers?

comment:2 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Yes, it has always bin in /opt/local/etc/sudoers - can you test using your username? If that works for you than something on my end is messed up

comment:3 Changed 9 years ago by neverpanic (Clemens Lang)

I did that as well, and it also works for me.

comment:4 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

OK, testing it appears that this is the issue in /opt/local/etc/sudoers

#includedir /opt/local/etc/sudoers.d

If I add another # in front, sudo now works as expected - note the folder has never existed AFAIK

It looks like the upgrade created the .dist file

-r--r-----  1 root  wheel   3.5K May  4 09:01 /opt/local/etc/sudoers
-r--r-----  1 root  wheel   3.4K Apr 25 12:39 /opt/local/etc/sudoers.dist

comment:5 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

THe issue is definitely related to this line in sudoers

#includedir /opt/local/etc/sudoers.d

I'm not sure why I'm the only one having this issue.

comment:6 Changed 9 years ago by kurthindenburg (Kurt Hindenburg)

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.