Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
08-25-2007, 09:35 AM
#1
Member
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732
Rep:
Opening GUI application via another user's permissions
I've logged in as zuki (startx ran as zuki), and I would like to run firefox on another users permissions i.e : zukip.
What I get when I try to do this is an export error if I understood it right... please help me to do this :
Code:
zuki @WhiteCastle:~$ su zukip
Password:
zukip@WhiteCastle:/home/zuki$ cd ~
zukip@WhiteCastle:~$ pwd
/home/zukip
zukip @WhiteCastle:~$ firefox &
[1] 4420
zukip@WhiteCastle:~$ No protocol specified
(firefox-bin:4436): Gtk-WARNING **: cannot open display:
[1]+ Exit 1 firefox
zukip @WhiteCastle:~$ export
declare -x COLORTERM=""
declare -x CPLUS_INCLUDE_PATH="/usr/lib/qt/include:/usr/lib/qt/include"
declare -x DISPLAY=":0.0"
declare -x GDK_USE_XFT="1"
declare -x GS_LIB="/home/zuki/.fonts"
declare -x GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/zuki/.gtkrc-2.0:/home/zuki/.kde/share/config/gtkrc-2.0"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/zuki/.gtkrc:/home/zuki/.kde/share/config/gtkrc"
declare -x HOME="/home/zukip"
declare -x HOSTNAME="WhiteCastle.Burger.Inc"
declare -x HUSHLOGIN="FALSE"
declare -x HZ="100"
declare -x INPUTRC="/etc/inputrc"
declare -x JAVA_HOME="/usr/lib/java"
declare -x KDEDIR="/usr"
declare -x KDE_FULL_SESSION="true"
declare -x KDE_MULTIHEAD="false"
declare -x KDE_SESSION_UID="777"
declare -x KONSOLE_DCOP="DCOPRef(konsole-4406,konsole)"
declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-4406,session-1)"
declare -x LANG="en_US"
declare -x LC_COLLATE="C"
declare -x LESS="-M"
declare -x LESSOPEN="|lesspipe.sh %s"
declare -x LOGNAME="zuki"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.bat=01;32:*.BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.EXE=01;32:*.arj=01;31:*.bz2=01;31:*.deb=01;31:*.gz=01;31:*.lzh=01;31:*.rar=01;31:*.RAR=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tz2=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.asf=01;35:*.ASF=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPEG=01;35:*.m2a=01;35:*.M2A=01;35:*.m2v=01;35:*.M2V=01;35:*.m4a=01;35:*.M4A=01;35:*.m4p=01;35:*.M4P=01;35:*.m4v=01;35:*.M4V=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.mpc=01;35:*.MPC=01;35:*.mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.ogg=01;35:*.OGG=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.PNG=01;35:*.ppm=01;35:*.ram=01;35:*.RAM=01;35:*.rm=01;35:*.RM=01;35:*.tga=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.tiff=01;35:*.TIFF=01;35:*.wav=01;35:*.WAV=01;35:*.wma=01;35:*.WMA=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.xwd=01;35:*.XWD=01;35:"
declare -x LS_OPTIONS=" -F -b -T 0 --color=auto "
declare -x MANPATH="/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man"
declare -x MINICOM="-c on"
declare -x OLDPWD="/home/zuki"
declare -x PATH="/usr/local/bin:/bin:/usr/bin"
declare -x PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
declare -x PS1="\\u@\\h:\\w\\\$ "
declare -x PS2="> "
declare -x PWD="/home/zukip"
declare -x QTDIR="/usr/lib/qt"
declare -x SESSION_MANAGER="local/WhiteCastle:/tmp/.ICE-unix/4313"
declare -x SHLVL="6"
declare -x T1LIB_CONFIG="/usr/share/t1lib/t1lib.config"
declare -x TERM="xterm"
declare -x USER="zuki"
declare -x WINDOWID="35651589"
declare -x WINDOWPATH="7"
declare -x XAUTHORITY="/home/zuki/.Xauthority"
declare -x XCURSOR_THEME="default"
declare -x XDG_CONFIG_DIRS="/etc/xdg:/etc/kde/xdg:/etc/xfce/xdg:/etc/kde/xdg:/etc/xfce/xdg"
zukip @WhiteCastle:~$ exit
exit
zuki @WhiteCastle:~$ export
declare -x COLORTERM=""
declare -x CPLUS_INCLUDE_PATH="/usr/lib/qt/include:/usr/lib/qt/include"
declare -x DISPLAY=":0.0"
declare -x GDK_USE_XFT="1"
declare -x GS_LIB="/home/zuki/.fonts"
declare -x GTK2_RC_FILES="/etc/gtk-2.0/gtkrc:/home/zuki/.gtkrc-2.0:/home/zuki/.kde/share/config/gtkrc-2.0"
declare -x GTK_RC_FILES="/etc/gtk/gtkrc:/home/zuki/.gtkrc:/home/zuki/.kde/share/config/gtkrc"
declare -x HOME="/home/zuki"
declare -x HOSTNAME="WhiteCastle.Burger.Inc"
declare -x HUSHLOGIN="FALSE"
declare -x HZ="100"
declare -x INPUTRC="/etc/inputrc"
declare -x JAVA_HOME="/usr/lib/java"
declare -x KDEDIR="/usr"
declare -x KDE_FULL_SESSION="true"
declare -x KDE_MULTIHEAD="false"
declare -x KDE_SESSION_UID="777"
declare -x KONSOLE_DCOP="DCOPRef(konsole-4406,konsole)"
declare -x KONSOLE_DCOP_SESSION="DCOPRef(konsole-4406,session-1)"
declare -x LANG="en_US"
declare -x LC_COLLATE="C"
declare -x LESS="-M"
declare -x LESSOPEN="|lesspipe.sh %s"
declare -x LOGNAME="zuki"
declare -x LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.bat=01;32:*.BAT=01;32:*.btm=01;32:*.BTM=01;32:*.cmd=01;32:*.CMD=01;32:*.com=01;32:*.COM=01;32:*.dll=01;32:*.DLL=01;32:*.exe=01;32:*.EXE=01;32:*.arj=01;31:*.bz2=01;31:*.deb=01;31:*.gz=01;31:*.lzh=01;31:*.rar=01;31:*.RAR=01;31:*.rpm=01;31:*.tar=01;31:*.taz=01;31:*.tb2=01;31:*.tbz2=01;31:*.tbz=01;31:*.tgz=01;31:*.tz2=01;31:*.z=01;31:*.Z=01;31:*.zip=01;31:*.ZIP=01;31:*.zoo=01;31:*.asf=01;35:*.ASF=01;35:*.avi=01;35:*.AVI=01;35:*.bmp=01;35:*.BMP=01;35:*.flac=01;35:*.FLAC=01;35:*.gif=01;35:*.GIF=01;35:*.jpg=01;35:*.JPG=01;35:*.jpeg=01;35:*.JPEG=01;35:*.m2a=01;35:*.M2A=01;35:*.m2v=01;35:*.M2V=01;35:*.m4a=01;35:*.M4A=01;35:*.m4p=01;35:*.M4P=01;35:*.m4v=01;35:*.M4V=01;35:*.mov=01;35:*.MOV=01;35:*.mp3=01;35:*.MP3=01;35:*.mpc=01;35:*.MPC=01;35:*.mpeg=01;35:*.MPEG=01;35:*.mpg=01;35:*.MPG=01;35:*.ogg=01;35:*.OGG=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.PNG=01;35:*.ppm=01;35:*.ram=01;35:*.RAM=01;35:*.rm=01;35:*.RM=01;35:*.tga=01;35:*.TGA=01;35:*.tif=01;35:*.TIF=01;35:*.tiff=01;35:*.TIFF=01;35:*.wav=01;35:*.WAV=01;35:*.wma=01;35:*.WMA=01;35:*.wmv=01;35:*.WMV=01;35:*.xbm=01;35:*.xcf=01;35:*.xpm=01;35:*.xwd=01;35:*.XWD=01;35:"
declare -x LS_OPTIONS=" -F -b -T 0 --color=auto "
declare -x MAIL="/var/spool/mail/zuki"
declare -x MANPATH="/usr/local/man:/usr/man:/usr/lib/java/man:/usr/share/texmf/man"
declare -x MINICOM="-c on"
declare -x OLDPWD
declare -x PATH="/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/qt/bin:/usr/share/texmf/bin:."
declare -x PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig"
declare -x PS1="\\u@\\h:\\w\\\$ "
declare -x PS2="> "
declare -x PWD="/home/zuki"
declare -x QTDIR="/usr/lib/qt"
declare -x SESSION_MANAGER="local/WhiteCastle:/tmp/.ICE-unix/4313"
declare -x SHELL="/bin/bash"
declare -x SHLVL="5"
declare -x T1LIB_CONFIG="/usr/share/t1lib/t1lib.config"
declare -x TERM="xterm"
declare -x USER="zuki"
declare -x WINDOWID="35651589"
declare -x WINDOWPATH="7"
declare -x XAUTHORITY="/home/zuki/.Xauthority"
declare -x XCURSOR_THEME="default"
declare -x XDG_CONFIG_DIRS="/etc/xdg:/etc/kde/xdg:/etc/xfce/xdg:/etc/kde/xdg:/etc/xfce/xdg"
Thanks!
Last edited by itz2000; 08-25-2007 at 09:36 AM .
08-25-2007, 10:51 AM
#2
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852
I can't guarantee that this is your only problem, but it seems at the very least that your xserver isn't configured to allow multiple users. You can allow others temporary access with 'xhost + username'.
Changing the + to - will remove the user.
08-25-2007, 11:13 AM
#3
Member
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732
Original Poster
Rep:
Quote:
Originally Posted by
David the H.
I can't guarantee that this is your only problem, but it seems at the very least that your xserver isn't configured to allow multiple users. You can allow others temporary access with 'xhost + username'.
Changing the + to - will remove the user.
hmmm...
Code:
root@WhiteCastle:/boot# xhost + zukip
xhost: bad hostname "zukip"
root@WhiteCastle:/boot# xhost + zukip@WhiteCastle
zukip@WhiteCastle being added to access control list
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 109 (X_ChangeHosts)
Value in failed request: 0xfe
Serial number of failed request: 7
Current serial number in output stream: 9
08-28-2007, 02:44 PM
#4
Member
Registered: Jul 2005
Distribution: Fedora fc4, fc7, Mandrake 10.1, mandriva06, suse 9.1, Slackware 10.2, 11.0, 12.0,1,2 (Current)]
Posts: 732
Original Poster
Rep:
anyone/? ...
All times are GMT -5. The time now is 05:03 PM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News