[jp] Problems syncing with udev and jpilot-sync

Adam Richard g4c9z at unb.ca
Wed Jan 19 07:56:58 EST 2005


Quoting Carlo Graziani <carlo at oddjob.uchicago.edu>:

> Adam Richard wrote:
> > Quoting Jason Day <jasonday at worldnet.att.net>:
> > 
> > 
> >>On Tue, Jan 18, 2005 at 04:25:58PM -0400, Adam Richard wrote:
> >>[snip]
> >>
> >>>su adam -c jpilot-sync >> /home/adam/Desktop/pilot.dev_ran.txt
> >>
> >>Try this instead:
> >> su - adam -c jpilot-sync >> /home/adam/Desktop/pilot.dev_ran.txt
> > 
> > 
> > No diff.  And anyway, I don't see why it would affect anything - remember I said
> that
> > the script runs properly if I run it manually.  That's what I find baffling.
> 
> Two thinkgs come to mind, by way of either eliminating or implicating
> the 'su' part:
> 
> (1)  Any authentication complaints in /var/log/messages, or in
> /var/log/secure?

Yes, actually.  Nothing less than all this:

------------
Jan 19 08:46:35 [kernel] usb 2-2: new full speed USB device using ohci_hcd and address
3
Jan 19 08:46:36 [kernel] usbcore: registered new driver usbserial
Jan 19 08:46:36 [kernel] usb 2-2: Handspring Visor / Palm OS: port 1, is for Generic
use
Jan 19 08:46:36 [kernel] visor 2-2:1.0: Handspring Visor / Palm OS converter detected
Jan 19 08:46:47 [su(pam_unix)] session opened for user adam by (uid=0)
Jan 19 08:46:47 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Jan 19 08:46:47 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Jan 19 08:46:47 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Jan 19 08:46:47 [su(pam_unix)] session opened for user adam by (uid=0)
Jan 19 08:46:47 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Jan 19 08:46:47 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Jan 19 08:46:47 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Jan 19 08:46:47 [su(pam_unix)] session closed for user adam
                - Last output repeated twice -
Jan 19 08:46:48 [su(pam_unix)] session opened for user adam by (uid=0)
Jan 19 08:46:48 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Jan 19 08:46:48 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Jan 19 08:46:48 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Jan 19 08:46:48 [su(pam_unix)] session opened for user adam by (uid=0)
Jan 19 08:46:48 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Jan 19 08:46:48 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Jan 19 08:46:48 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Jan 19 08:46:48 [su(pam_unix)] session closed for user adam
                - Last output repeated twice -
Jan 19 08:47:31 [kernel] usb 2-2: USB disconnect, address 3
Jan 19 08:47:31 [su(pam_unix)] session opened for user adam by (uid=0)
Jan 19 08:47:31 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Jan 19 08:47:31 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Jan 19 08:47:31 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Jan 19 08:47:31 [su(pam_unix)] session closed for user adam
Jan 19 08:47:41 [su(pam_unix)] session opened for user adam by (uid=0)
Jan 19 08:47:41 [su] PAM pam_putenv: delete non-existent entry; REMOTEHOST
Jan 19 08:47:41 [PAM-env] Unknown PAM_ITEM: <XAUTHORITY>
Jan 19 08:47:41 [su] PAM pam_putenv: delete non-existent entry; XAUTHORITY
Jan 19 08:47:41 [su(pam_unix)] session closed for user adam
-----------------

> (2) What happens if instead of using 'su', you do something like
> 
> export JPILOT_HOME=/home/adam/.jpilot
> jpilot-sync >> /home/adam/Desktop/pilot.dev_ran.txt

That makes it work!  Thanks!  So what was the problem?



More information about the Jpilot mailing list