Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 994  / 2 Years ago, tue, september 6, 2022, 7:47:26

Following the wiki's advice, I installed ubuntu-zfs. However, once everything installed correctly, and I tried installing another application via apt-get, I get a weird issue with my sudoers file:



max@host:~$ sudo apt-get install deluge deluge-web
sudo: /etc/sudoers.d/zfs is mode 0644, should be 0440
>>> /etc/sudoers.d/README: /etc/sudoers.d/zfs near line 18 <<<
sudo: parse error in /etc/sudoers.d/README near line 18
sudo: no valid sudoers sources found, quitting
*** glibc detected *** sudo: double free or corruption (!prev): 0x08909d08 ***
======= Backtrace: =========
....


Why has zfs messed with the sudoers file? I can post the backtrace if needed.


More From » apt

 Answers
6

I just had the same problem, I guess there must be a recent change to that package.
To fix it: (Taken from here:
"no valid sudoers sources found, quitting" error, how to fix it?)



Enter recovery mode (reboot, hold down the SHIFT key after your bios post has finished until the ubuntu menu shows, and select recovery with network).
At the prompt, type these commands:



chown -R root:root /etc/sudoers.d
chmod u=rwx,g=rx,o=rx /etc/sudoers.d/
chmod u=r,g=r,o= /etc/sudoers.d/*


As to your actual question (why does zfs need sudo rights) - I dont know!


[#37517] Thursday, September 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onomicsiberated

Total Points: 217
Total Questions: 98
Total Answers: 107

Location: Luxembourg
Member since Sun, May 28, 2023
1 Year ago
;