LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   crond and xauth problems (https://www.linuxquestions.org/questions/linux-from-scratch-13/crond-and-xauth-problems-15220/)

parapente 02-27-2002 03:59 PM

crond and xauth problems
 
I have about one week now a working lfs system (lfs-3.1) However I cannot find crond. Does anyone know where to find the standard source package? My search around the web revealed a numerous different solutions for crond but I'd like to stick to the already tested and secure one. Also I have compiled XFree 4.2.2 and KDE 2.2.2 so I chose to use kdm for startup login. I do login just fine but once I login as a user I cannot su to another user and execute applications that use the X-windows, even if I login as root! There seem to be a misconfiguration with xauth. Anoone experienced enough to give me his advise? I can make everything go well if I execute xhost +localhost before executing the application but I'd like a better solution, if there is one of course!

lfslinux 02-27-2002 04:08 PM

Re: crond and xauth problems
 
Quote:

Originally posted by parapente
I have about one week now a working lfs system (lfs-3.1) However I cannot find crond. Does anyone know where to find the standard source package? My search around the web revealed a numerous different solutions for crond but I'd like to stick to the already tested and secure one. Also I have compiled XFree 4.2.2 and KDE 2.2.2 so I chose to use kdm for startup login. I do login just fine but once I login as a user I cannot su to another user and execute applications that use the X-windows, even if I login as root! There seem to be a misconfiguration with xauth. Anoone experienced enough to give me his advise? I can make everything go well if I execute xhost +localhost before executing the application but I'd like a better solution, if there is one of course!
What do you mean by the standard cron package? The cron created by Paul Vixie perhaps? If so, there is a copy at http://ftp.linuxfromscratch.org/misc/ that's also patched using one of the Debian patches (it's probably not the most up to date one though).

You said su'ing to another user doesn't work. Can you give us more information, such as error messages?

parapente 02-27-2002 04:19 PM

That's what I call speed! In just 10minutes you saved me after 2 days of search (stupid me)! Thanks alot for the immediate answer. About su probably I wasn't very clear. There is no problem with the su command itself, but for example when I execute gkrellm, after suing to root, when I am logged in as foo, I get:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Gtk-WARNING **: cannot open display: :0.0

After executing the command 'xhost +localhost' as foo, it executes just fine. Any ideas?

lfslinux 02-27-2002 04:21 PM

Quote:

Originally posted by parapente
That's what I call speed! In just 10minutes you saved me after 2 days of search (stupid me)! Thanks alot for the immediate answer. About su probably I wasn't very clear. There is no problem with the su command itself, but for example when I execute gkrellm, after suing to root, when I am logged in as foo, I get:

Xlib: connection to ":0.0" refused by server
Xlib: No protocol specified

Gtk-WARNING **: cannot open display: :0.0

After executing the command 'xhost +localhost' as foo, it executes just fine. Any ideas?

Try "xhost +yourhostname" too

To find out what 'yourhostname' is, run the hostname command. Sometimes programs just want to connect to your real hostname rather than the localhost hostname.

parapente 03-05-2002 04:21 PM

I have found another solution. I found at the net a script called sux made by a french(probably) guy named Francois Gouget. It does the authentication automatically when suing to another user. It works just fine now, I hope I haven't added a hole to my system somehow...


All times are GMT -5. The time now is 11:22 PM.