Gene Harris wrote:
You need to use 'su -m', which leaves the environment, including the DISPLAY export unchanged from the current user, but changes the userid to the user you want to switch to.Thanx for your reply Gene!
You can then run your x program as the user you wish to use.
I believe this is a MIT-MAGIC-COOKIE issue and is reasonably well documented in the questions mailing list archive. In your previous KDE life, were you using XFree86 v3 and now you have switched to XFree86 v4? This is one of the first things many users run into after they switch.
Gene
On Saturday 15 February 2003 01:53 pm, Dennis wrote:
Paul A. Mayer wrote:
Hi,Thanx for ur replies...
Did you try to call:
xhost +localhost
before your su command?
Looks like your X session is not letting your other user access your
display.
$.02, hope it helps.
/Paul
Dennis wrote:
kitsune wrote:
On Sat, 15 Feb 2003 18:23:18 +0100when i try su [user] -c xchat, i get this error:
Dennis <[EMAIL PROTECTED]> wrote:
Hi,if that run thing was a command that can be done then it can still
I'm a former kde user, using Windowmaker now....
And in the past i always used RUN in kde, to startup my favourite
irc client...
RUN had several options to execute programs under a different user
etc, which comes in handy when using IRC...
be used under windowmaker...
But now i need to use SU i think to accomplish this, but it doesntwierd it works here...
work :(
su <username> -c <command>
example...
su kitsune -c scilab
this will su user kitsune and then run scilab
Does anyone know which command i can use to execute an X programthis will work too...
under a different user?
ssh 127.0.0.1 -X -l <username>
the -X turns on X forwarding
Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified
Gtk-WARNING **: cannot open display: :0.0
RUN in kde was a kde-specific command...i think it was in the KDE Panel
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message
Tried the xhost command, but i get the exact error message afterwards...
So i guess something else causes the problem..
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message
However when i use su -m, i get the same error again!!
Maybe it's because of the security precaution that su has?
" As a security precaution, if the target user's shell is a non-standard shell
(as defined by getusershell(3)) and the caller's real uid is non- zero, su will fail."
I'll check that out...
Ps.. i was already using v4, but now that i dont have the kde panel anymore, i'm forced to use su, which brings me to this issue :)
Greetz Dennis
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message