sudo problems
David A. Bandel
david.bandel at gmail.com
Tue Jan 1 20:05:00 PST 2013
On Tue, Jan 1, 2013 at 10:46 PM, Brad DeVries <devriesbj at gmail.com> wrote:
> David, any chance that /etc/groups got messed up? I'm wondering if the
> "root" group picked up a new GID.
No, that wasn't it. I just found the problem. I'm doing a chroot,
and the chroot is where things got messed up. I thought the sudo came
before the chroot -- it comes after.
I had some things in a development tree in /usr/src where other folks
could work as well. Someone must have run a chown -R :src on
/usr/src/ so they could write. Unfortunately, it hosed the chroot
environment.
Hadn't looked in the chroot for usr/bin/sudo.
sorry for the noise -- problem solved.
>
> Brad.
>
> On Jan 1, 2013 6:22 PM, "David A. Bandel" <david.bandel at gmail.com> wrote:
>>
>> Folks,
>>
>> First, happy new year.
>>
>> Now for the puzzle. Today I ran into this:
>> sudo: /etc/sudoers is owned by gid 40, should be 0
>> sudo: no valid sudoers sources found, quitting
>> sudo: unable to initialize policy plugin
>>
>> _very_ odd as you can see here:
>>
>> david at sanpablo:/usr/src/chromiumos$ ls -al /etc/sudoers*
>> -r--r----- 1 root root 507 Jan 23 2012 /etc/sudoers
>>
>> /etc/sudoers.d:
>> total 32
>> drwxr-xr-x 2 root root 4096 Jan 1 18:01 .
>> drwxr-xr-x 224 root root 16384 Jan 1 09:50 ..
>> -r--r----- 1 root root 958 Nov 12 2011 README
>> -r--r----- 1 root root 361 May 30 2012 hobbit
>> -r--r----- 1 root root 53 Jan 1 18:01 relax_requirements
>>
>> Nothing makes sense here. gid 40 is src (one of my secondary gids,
>> but not my primary). The subdirectory I'm in using sudo is group src.
>> Other than that, I have no idea where this might be coming from.
>> Google has told me nothing that pertains (folks with this problem all
>> had their permissions hosed, whereas mine are correct).
>>
>> Ideas?
>>
>> TIA,
>>
>> David A. Bandel
>> --
>> Two things are infinite: the universe and human stupidity; and I'm not
>> sure about the the universe. -- Albert Einstein
>> Visit my web page at: http://david.bandel.us/
>> _______________________________________________
>> Linux-users mailing list
>> Linux-users at linux-sxs.org
>> http://mailman.celestial.com/mailman/listinfo/linux-users
>
>
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> http://mailman.celestial.com/mailman/listinfo/linux-users
>
David A. Bandel
--
Two things are infinite: the universe and human stupidity; and I'm not
sure about the the universe. -- Albert Einstein
Visit my web page at: http://david.bandel.us/
More information about the Linux-users
mailing list