DietPi-Login | Error loading sudoers policy

Created on 29 Mar 2019  路  5Comments  路  Source: MichaIng/DietPi

ADMIN EDIT

Solution:

sed -i "/until sudo systemctl/c\        while pgrep -f '/DietPi/dietpi/postboot' &> /dev/null" /DietPi/dietpi/dietpi-login

Creating a bug report/issue

Required Information

  • DietPi version:

!/bin/bash

G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=22
G_DIETPI_VERSION_RC=3
G_GITBRANCH=master
G_GITOWNER=Fourdee

  • Distro version:

stretch
9.8

  • Kernel version:

Linux DietPi 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64 GNU/Linux

  • SBC device:

Native PC (x86_64)

Additional Information (if applicable)

Bug Report ID: 3b0cd5c5-8000-40c6-ac83-14972cc6877b

Steps to reproduce

I installed the latest version of dietpi

Actual behaviour

After restart, I receive this error:

sh: 1: /usr/bin/xauth: not found
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"0)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"1)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"2)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"3)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"4)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"5)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"6)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"7)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"8)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"9)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"10)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"11)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"12)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"13)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"14)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"15)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"16)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"17)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"18)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"19)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"20)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"21)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"22)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"23)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"24)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"25)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"26)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"27)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"28)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"29)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"30)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"31)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"32)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"33)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"34)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"35)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"36)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"37)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"38)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"39)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"40)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"41)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"42)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"43)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"44)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"45)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"46)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"47)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"48)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"49)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"50)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"51)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"52)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"53)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"54)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
sudo: error in /etc/sudo.conf, line 0 while loading plugin "sudoers_policy"55)
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
[ INFO ] Waiting for DietPi-Postboot to finish... (Press CTRL+C to abort) (56)

Known Issue Solution available

All 5 comments

@shlatchz
I guess you attempt to login as user with no sudo permissions?

Please do:

sed -i "/until sudo systemctl/c\        while pgrep -f '/DietPi/dietpi/postboot' &> /dev/null" /DietPi/dietpi/dietpi-login

Ref: https://github.com/MichaIng/DietPi/issues/2667

@MichaIng No more error after reboot. thanks.

@shlatchz
Thanks for quick test. I mark this as closed as this fix has been implemented for v6.23.

Now every time I login as a non root user I immediately get a prompt for my password. My first thought was that it was an upgrade issue because pressing CTRL+C shows the following:

Waiting for Postboot to finish... (Press CTRL+C to abort)

If there is no other way to check for the status of postboot, can I suggest adding a text explaining why I am being asked for the password.

@dimlev
Jep known issue and fixed with v6.23. See here how to fix now: https://github.com/MichaIng/DietPi/issues/2667
Indeed not very clever from us to add a sudo command to the global login script :see_no_evil:.

EDIT: Ah I just see at the top of this topic the same solution is provided as well :smile:: https://github.com/MichaIng/DietPi/issues/2676#issue-427156837

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fourdee picture Fourdee  路  3Comments

Invictaz picture Invictaz  路  3Comments

pfeerick picture pfeerick  路  3Comments

1021683053 picture 1021683053  路  3Comments

bhaveshgohel picture bhaveshgohel  路  3Comments