LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 08-25-2007, 09:35 AM   #1
itz2000
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: Reputation: 30
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.
 
Old 08-25-2007, 10:51 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
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.
 
Old 08-25-2007, 11:13 AM   #3
itz2000
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: Reputation: 30
Quote:
Originally Posted by David the H. View Post
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
 
Old 08-28-2007, 02:44 PM   #4
itz2000
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: Reputation: 30
anyone/? ...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
C - Opening a Status file in user's home dir. pentalive Programming 10 06-09-2005 09:53 AM
Opening an external application using Qprocess in QT designer nunation Programming 3 01-30-2005 02:39 AM
Understanding permissions - from a Windows user's perspective floydian219 Linux - Newbie 12 09-07-2004 08:10 AM
Opening file with default application from shell script? bourbon_beast Programming 4 04-13-2004 01:52 AM
Increasing normal user's permissions gboutwel Linux - Security 3 11-10-2002 03:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration