[PLUG] authentication

Shannon C. Dealy dealy at deatech.com
Thu Aug 8 19:42:11 UTC 2002


On Wed, 7 Aug 2002, Michael Montagne wrote:

> I'm trying to use gnomecal and cron to send myself emails with my
> schedule.  All I keep getting are blank emails. I can run the command
> logged in as me but when I log in as root I get this:
>
> GnomeUI-WARNING **: While connecting to session manager:
> Authentication Rejected, reason : None of the authentication protocols
> specified are supported and host-based authentication failed.
>
> So that seems to be a clue.  I thought crontab -e setup programs to run
> as me.  Right?  What do I need to do to allow this command to run.  It
> is basically "gnomecal -e".

I don't think you are going to be able to do this (unless you want to do a
little code work, or submit a feature request and wait) because gnomecal
wants to access the X window display environment which you aren't going to
have when running from within a cron job.  To verify this, try running
your command line when logged into a virtual console rather than from
within X.  There is one way around this, if you have an X server running
when the cron job executes, and the user the cron job executes as has
permission to connect to the X server, and you set the "DISPLAY"
environment variable for the cron job to point to the active X server,
then it should work.


Shannon C. Dealy      |               DeaTech Research Inc.
dealy at deatech.com     |          - Custom Software Development -
                      |    Embedded Systems, Real-time, Device Drivers
Phone: (800) 467-5820 | Networking, Scientific & Engineering Applications
   or: (541) 451-5177 |                  www.deatech.com





More information about the PLUG mailing list