Damaged file in /etc/sudoers.d (Solution)

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Persisto
Level 1
Level 1
Posts: 3
Joined: Thu Mar 16, 2017 12:19 pm

Damaged file in /etc/sudoers.d (Solution)

Post by Persisto »

I did a complete re-install of Linux Mint 20.2.
I have my /home directory on a separate drive.
After the re-installing Jellyfin, sudo would not work anymore with the following message

EDIT: I had assumed this problem was due to what had remained of Jellyfin my /home directory.
However after uninstalling (sudo apt-get purge --auto-remove jellyfin ) and re-installing the problem re-appeared!!!
I'll avoid it as of now https://www.<blocked blogspam>/how-to-ins ... x-mint-20/
EDIT end.

Code: Select all

pete@pete-Z420-2-L:~$ sudo reboot now
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "RESTARTSERVER_SYSV" already defined near line 2 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "STARTSERVER_SYSV" already defined near line 3 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "STOPSERVER_SYSV" already defined near line 4 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "RESTARTSERVER_SYSTEMD" already defined near line 5 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "STARTSERVER_SYSTEMD" already defined near line 6 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "STOPSERVER_SYSTEMD" already defined near line 7 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "RESTARTSERVER_INITD" already defined near line 8 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "STARTSERVER_INITD" already defined near line 9 <<<
>>> /etc/sudoers.d/jellyfin-sudoers: Alias "STOPSERVER_INITD" already defined near line 10 <<<
sudo: parse error in /etc/sudoers.d/jellyfin-sudoers near line 2
sudo: no valid sudoers sources found, quitting...
sudo: unable to initialise policy plug-in
This showed the way https://askubuntu.com/questions/799669/ ... 17#1053617

In step 4, instead of of

Code: Select all

pkexec visudo
I entered

Code: Select all

pkexec visudo -f /etc/sudoers.d/jellyfin-sudoers
and saved an unchanged copy of the file in my home directory.

and then deleted the offending file

Code: Select all

pkexec rm /etc/sudoers.d/jellyfin-sudoers
All Ok!
Last edited by LockBot on Tue Jan 03, 2023 11:00 pm, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Software & Applications”