View previous topic :: View next topic |
Author |
Message |
DNH n00b
Joined: 16 Apr 2002 Posts: 60 Location: Ann Arbor, MI
|
Posted: Sat Apr 20, 2002 12:27 am Post subject: xdm woes |
|
|
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 |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
Fragadelic n00b
Joined: 18 Apr 2002 Posts: 26
|
Posted: Sat Apr 20, 2002 3:48 am Post subject: |
|
|
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 |
|
|
DNH n00b
Joined: 16 Apr 2002 Posts: 60 Location: Ann Arbor, MI
|
Posted: Sat Apr 20, 2002 4:12 am Post subject: |
|
|
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 |
|
|
Guest
|
Posted: Sat Apr 20, 2002 4:23 am Post subject: |
|
|
There is nothing really missing - Gentoo is just setup that way by default for security reasons. |
|
Back to top |
|
|
fghellar Bodhisattva
Joined: 10 Apr 2002 Posts: 856 Location: Porto Alegre, BR
|
|
Back to top |
|
|
Guest
|
|
Back to top |
|
|
DNH n00b
Joined: 16 Apr 2002 Posts: 60 Location: Ann Arbor, MI
|
Posted: Sun Apr 21, 2002 2:13 am Post subject: |
|
|
tk is installed. I'll look into xauth, thanks. _________________ The answer |
|
Back to top |
|
|
|