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)
Not really a solution to your problem, but: executing "xhost +" once lets you run X11 apps as root aswell
I can run X apps with sudo without any changes to sudoers. Maybe that info is just outdated?
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.
Mobo: ASUS P8Z77-V PRO // Processor: Intel Core i7-3770K 3.4GHz // GFX: nVidia GeForce GTX 970 Ti // RAM: 32GB (4x 8GB) Corsair DDR3 (@ 2133MHz) // Storage: 1x 3TB Seagate SATAII 5x 1TB Samsung SATAII, 2x 120GB Corsair SSD
Making lemonade from lemons since 2015.
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!
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.)
$ man hdparm
No manual entry for hdparm
$ pacman -Ss hdparm $
Last edited by rhoit (2012-11-16 15:36:45)
$ pacman -Ss hdparm $
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)