[openbox] "root command" in autostart.sh

Ian Zimmerman itz at buug.org
Mon Jul 30 15:03:52 EDT 2012


stefanozanobini> Due to problems with nm-applet (network manager tray
stefanozanobini> icon), I should start it as root.  Is it possible to
stefanozanobini> start as root a programm with autostart.sh?  Something
stefanozanobini> like "sudo nm-applet" (but without password request!)

You can easily configure sudo to not ask for passwords in specific
circumstances, such as when executed by a specific user.

A much thornier problem in this situation is going to be the transfer of
your X11 authentication token to the root account.  Read "man xauth" for
that.  It is doable but tricky enough (in combination with a program
such as sudo) then for a long time I bypassed all this by running a ssh
daemon and executing something like

ssh -o ForwardX11 root at localhost nm-applet

which takes care of the X11 details.

I don't do this anymore because I have no use for rooty X programs.

-- 
Ian Zimmerman
gpg public key: 1024D/C6FF61AD
fingerprint: 66DC D68F 5C1B 4D71 2EE5  BD03 8A00 786C C6FF 61AD
http://www.gravatar.com/avatar/c66875cda51109f76c6312f4d4743d1e.png
Rule 420: All persons more than eight miles high to leave the court.


More information about the openbox mailing list