LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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

Reply
 
Search this Thread
Old 02-27-2002, 03:59 PM   #1
parapente
Member
 
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39

Rep: Reputation: 15
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!
 
Old 02-27-2002, 04:08 PM   #2
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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?
 
Old 02-27-2002, 04:19 PM   #3
parapente
Member
 
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
Thumbs up

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?
 
Old 02-27-2002, 04:21 PM   #4
lfslinux
LFS Maintainer
 
Registered: Jan 2002
Location: Canmore, Alberta, Canada
Distribution: Linux From Scratch
Posts: 372

Rep: Reputation: 30
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.
 
Old 03-05-2002, 04:21 PM   #5
parapente
Member
 
Registered: Sep 2001
Location: Greece
Distribution: Gentoo
Posts: 39

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
about xauth? Chowroc Linux - General 6 05-24-2005 05:21 PM
How to use xauth? Chowroc Linux - Networking 1 05-22-2005 10:31 AM
crond shell execution problems lm317t Linux - General 1 02-22-2005 09:46 AM
How can I get xauth with startx? hypnos Linux - Software 1 01-15-2005 04:39 PM
su - and xauth .. doublefailure Linux - General 0 03-05-2003 03:46 PM


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

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration