You are not logged in.
i was going through the wiki
added the line.
Defaults env_keep += "HOME"
[rho@turion ~]$ sudo visudo
visudo: >>> /etc/sudoers: syntax error near line 94 <<<
What now?
Options are:
(e)dit sudoers file again
e(x)it without saving changes to sudoers file
(Q)uit and save changes to sudoers file (DANGER!)
What now? Q
[rho@turion ~]$ sudo
sudo: >>> /etc/sudoers: syntax error near line 94 <<<
sudo: parse error in /etc/sudoers near line 94
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin
Last edited by rhoit (2012-11-16 11:59:50)
Offline
Not really a solution to your problem, but: executing "xhost +" once lets you run X11 apps as root aswell
Offline
I can run X apps with sudo without any changes to sudoers. Maybe that info is just outdated?
Offline
su to root, and manually remove the offending line. It's strange that visudo let you save the file with an error in it though, maybe you file a bug report about that.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Online
i wanted to conform... WorMzy i did your way!, i didn't really check it ran from without doing anything ... must have tried before i read! LOL!
Offline
It's strange that visudo let you save the file with an error in it though, maybe you file a bug report about that.
If you think a bug report should be filed because a program lets you do something dangerous after clearly warning you that it's dangerous, I suggest not looking at `hdparm --help` or `man hdparm`
(Actually I suggest everyone read those - they're pretty entertaining.)
Offline
$ man hdparm
No manual entry for hdparm
$ pacman -Ss hdparm
$
can't find!
Edited:
Found https://wiki.archlinux.org/index.php/Hdparm
Last edited by rhoit (2012-11-16 15:36:45)
Offline
$ pacman -Ss hdparm $
can't find!
That could be a problem, given that hdparm is in core ...
Anyways, man page: http://linux.die.net/man/8/hdparm
(This all is pretty off-topic to the original thread; sorry moderators. I was merely using it as a rather blatant example of the "Warn the user but do what it is told to do" idea)
Offline