Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xdm woes
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
DNH
n00b
n00b


Joined: 16 Apr 2002
Posts: 60
Location: Ann Arbor, MI

PostPosted: Sat Apr 20, 2002 12:27 am    Post subject: xdm woes Reply with quote

I have xdm working after a bit of tweaking, but when I try to run programs that require X as root (via su) I get a connection refused error. How can I add root to the list of users that can access X while I am logged in as a normal user? TIA
_________________
The answer
Back to top
View user's profile Send private message
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Sat Apr 20, 2002 12:33 am    Post subject: Reply with quote

Did you add your normal user to the wheel group?
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
Fragadelic
n00b
n00b


Joined: 18 Apr 2002
Posts: 26

PostPosted: Sat Apr 20, 2002 3:48 am    Post subject: Reply with quote

If you are running kde you can do the following:

'kdesu application'

This is the kde version of 'su' which gives you a graphical window where you enter the root password and will allow access to your program.

If you are not running kde then you can do the following but it is a bit of a security issue as it opens up X to everyone on that machine:

'xhost +'
Back to top
View user's profile Send private message
DNH
n00b
n00b


Joined: 16 Apr 2002
Posts: 60
Location: Ann Arbor, MI

PostPosted: Sat Apr 20, 2002 4:12 am    Post subject: Reply with quote

yes...the normal user is in wheel. Here's the exact message:

junk /usr/src/linux > make xconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/linux-2.4.19-r1/scripts'
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
echo "set ARCH \"i386\"" >> kconfig.tk
cat tail.tk >> kconfig.tk
chmod 755 kconfig.tk
make[1]: Leaving directory `/usr/src/linux-2.4.19-r1/scripts'
wish -f scripts/kconfig.tk
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Application initialization failed: couldn't connect to display ":0.0"
Error in startup script: invalid command name "button"
while executing
"button .ref"
(file "scripts/kconfig.tk" line 51)
make: *** [xconfig] Error 1

I can get it to work by issuing the command 'xhost +' but that allows any user to use X and I would prefer to be able to add whoever. 'xhost + root' and 'xhost + su' didn't work.

I have a feeling something is missing from one of the xdm config files, but I am not sure what, or which file it would be. I have tried searching google, but have found nothing helpful.
_________________
The answer
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Apr 20, 2002 4:23 am    Post subject: Reply with quote

There is nothing really missing - Gentoo is just setup that way by default for security reasons.
Back to top
fghellar
Bodhisattva
Bodhisattva


Joined: 10 Apr 2002
Posts: 856
Location: Porto Alegre, BR

PostPosted: Sat Apr 20, 2002 4:35 am    Post subject: Reply with quote

Maybe this is a silly question, but... Did you emerge tk?
_________________
| www.gentoo.org | www.tldp.org | www.google.com |
Back to top
View user's profile Send private message
Guest






PostPosted: Sat Apr 20, 2002 5:16 am    Post subject: Reply with quote

xauth is what can also be used in place of xhost. It requires you to set a special cookie and you can then copy that to the other users.

http://www.acm.uiuc.edu/workshops/security/xauth.html
Back to top
DNH
n00b
n00b


Joined: 16 Apr 2002
Posts: 60
Location: Ann Arbor, MI

PostPosted: Sun Apr 21, 2002 2:13 am    Post subject: Reply with quote

tk is installed. I'll look into xauth, thanks.
_________________
The answer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum