You are not logged in.

#1 2012-11-16 10:42:59

rhoit
Member
From: 977
Registered: 2012-07-05
Posts: 58
Website

[SOLVED] Run X11 apps using sudo while following wiki

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

#2 2012-11-16 11:39:34

IsSuE
Member
From: Upper Austria
Registered: 2006-04-29
Posts: 309

Re: [SOLVED] Run X11 apps using sudo while following wiki

Not really a solution to your problem, but: executing "xhost +" once  lets you run X11 apps as root aswell

Offline

#3 2012-11-16 11:44:32

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: [SOLVED] Run X11 apps using sudo while following wiki

I can run X apps with sudo without any changes to sudoers. Maybe that info is just outdated?

Offline

#4 2012-11-16 11:52:50

WorMzy
Forum Moderator
From: England
Registered: 2010-06-16
Posts: 5,059

Re: [SOLVED] Run X11 apps using sudo while following wiki

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: 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

Offline

#5 2012-11-16 11:59:29

rhoit
Member
From: 977
Registered: 2012-07-05
Posts: 58
Website

Re: [SOLVED] Run X11 apps using sudo while following wiki

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

#6 2012-11-16 15:09:57

ZekeSulastin
Member
Registered: 2010-09-20
Posts: 266

Re: [SOLVED] Run X11 apps using sudo while following wiki

WorMzy wrote:

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` wink

(Actually I suggest everyone read those - they're pretty entertaining.)

Offline

#7 2012-11-16 15:15:04

rhoit
Member
From: 977
Registered: 2012-07-05
Posts: 58
Website

Re: [SOLVED] Run X11 apps using sudo while following wiki

ZekeSulastin wrote:
$ 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

#8 2012-11-16 15:34:10

ZekeSulastin
Member
Registered: 2010-09-20
Posts: 266

Re: [SOLVED] Run X11 apps using sudo while following wiki

rhoit wrote:
$ 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

Board footer

Powered by FluxBB