Project

General

Profile

Actions

Bug #3994

closed

sudo package not working on 2.2

Added by Chris Buechler about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
sudo
Target version:
Start date:
11/07/2014
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Affected Version:
2.2
Affected Plus Version:
Affected Architecture:

Description

With a completely default config, when trying to use sudo, you just get:

sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/local/libexec/sudo/sudoers.so: No such file or directory
sudo: fatal error, unable to load plugins
Actions #1

Updated by Phillip Davis about 10 years ago

Indeed, same for me. I should really have been using some security on test systems rather than just the root/admin account, then I would have noticed this a while ago.
It would be really good to have sudo package working on 2.2 by release time.

Actions #2

Updated by Jim Pingle about 10 years ago

  • Assignee set to Jim Pingle
Actions #3

Updated by Jim Pingle about 10 years ago

  • Assignee changed from Jim Pingle to Renato Botelho

The binary is looking for its files in /usr/local/ when they live in the PBI dir /usr/pbi/sudo-<arch>/local/

I can work around it by adding a sudo.conf in /usr/local/etc/ pointing it to the files it needs in the PBI path's libexec dir and also putting sudoers in /usr/local/etc/ instead. I have a patch to do this ready but it does not seem to be the best/most correct way.

There used to be a wrapper of sorts that set the right libraries and paths, that doesn't appear to be there any longer. Is that expected now on 2.2? Or perhaps the libexec .so files are not getting a symlink like they should? On 2.1 I see this:

lrwxr-xr-x 1 root wheel 38 Aug 28 18:03 /usr/local/libexec/sudoers.so -> /usr/pbi/sudo-amd64/libexec/sudoers.so

On 2.2 that symlink is not present.

Actions #4

Updated by Phillip Davis about 10 years ago

The latest sudo 0.2.3 works for me, both on a production 2.1.5 system and a test 2.2 system.

Actions #5

Updated by Jim Pingle about 10 years ago

I added my workaround mentioned above for now. The other issue needs verified to ensure there isn't a larger problem with the PBI build.

It's good to know it works for others though, I tested it on 2.2 and 2.1.5 before committing, but it's nice to know for sure.

Actions #6

Updated by Chris Buechler about 10 years ago

  • Status changed from New to Resolved
  • Target version set to 2.2

this was fixed, root PBI problem has a diff ticket

Actions

Also available in: Atom PDF