Tuesday, May 31, 2011

Slackware 13.37 root and xapplications


In slackware, we have few applications like pkgtool, sbopkg etc that has to run as root, however always using the console to punching in sudo is difficult, one way to over come is to execute them with a desktop link, however since the apps are executed in a auxiliary terminal emulator like xterm/konsole running in non-privileged user's xsession we have an issue, root can't connect to the xserver unless we allow. This might be the error you might see
sudo /usr/bin/firefox
No protocol specified
No protocol specified
Error: cannot open display: :0
Do the following to authorise unrestricted remote connection to x

xhost + 
Consider the security implications of running xhost + read 'man 1 xhost'
Now you can enjoy running
sudo /usr/bin/konsole -e /usr/sbin/sbokpg

No comments :

Post a Comment

Translate