Bug #3994
closedsudo package not working on 2.2
0%
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
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.
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.
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.
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.
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