Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system. |
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.
|
 |
02-27-2002, 03:59 PM
|
#1
|
Member
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39
Rep:
|
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!
|
|
|
02-27-2002, 04:08 PM
|
#2
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
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?
|
|
|
02-27-2002, 04:19 PM
|
#3
|
Member
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39
Original Poster
Rep:
|
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?
|
|
|
02-27-2002, 04:21 PM
|
#4
|
LFS Maintainer
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372
Rep:
|
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.
|
|
|
03-05-2002, 04:21 PM
|
#5
|
Member
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39
Original Poster
Rep:
|
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 05:51 AM.
|
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
|
|