You are not logged in.

#1 2013-06-03 14:58:43

teckk
Member
Registered: 2013-02-21
Posts: 585

[SOLVED]After upgrade I can't run anything as root on one machine.

sudo xterm
No protocol specified
Warning: This program is an suid-root program or is being run by the root user.
The full text of the error or warning message cannot be safely formatted
in this environment. You may get a more descriptive message by running the
program as a non-root user or by removing the suid bit on the executable.
xterm: Xt error: Can't open display: %s

xterm as user fine, no message.

which xterm
/usr/bin/xterm

ls -l /usr/bin/xterm
-rwxr-xr-x 1 root root 446160 May 29 10:26 /usr/bin/xterm

Same for non gtk like mplayer

sudo mplayer file.avi
No protocol specified
vo: couldn't open the X11 display (:0.0)!
No protocol specified
....

Last edited by teckk (2013-06-03 17:41:00)

Offline

#2 2013-06-03 15:02:37

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: [SOLVED]After upgrade I can't run anything as root on one machine.

You don't use sudo for GUI programs. Use something like gksu instead.

Offline

#3 2013-06-03 15:19:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED]After upgrade I can't run anything as root on one machine.

Offline

#4 2013-06-03 17:41:12

teckk
Member
Registered: 2013-02-21
Posts: 585

Re: [SOLVED]After upgrade I can't run anything as root on one machine.

The problem disappeared after killing and starting X a few times. I don't know why, or where the problem was. It only affected one 32 bit machine.
And no, you don't have to have gksu or kdesu for user to launch an app as root in X, that's what sudo is for.

Offline

Board footer

Powered by FluxBB