Linux From ScratchThis 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.
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!
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?
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?
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.