Re: rsync (ssh) authorisation weirdness on F18

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Allegedly, on or about 23 January 2013, William Murray sent:
> in ./NetworkManager/dispatcher.d/ and looks at new network
> connections. 
> If it sees one machine some criteria it calls a backup script
> in /etc/cron.daily/ which rsyncs various directories between my laptop
> and a desktop machine. This worked will in F17 and many
> previous versions.
>     In F18 the rsync command fails to connect:
>   dbus-daemon[938]: Could not create directory '/root/.ssh'.
>   dbus-daemon[938]: Host key verification failed.
> 
> If I run either of the scripts as root interactively then they work.
> But not when NetworkManager tries  to run them. Any idea what might be
> wrong? Both end already have /root/.ssh, so this error confuses me.

First thought:  The scripts run by the dispatcher probably aren't being
run as the root user.

Second thought, unrelated to the problem, but a common enough gotcha for
any automatically run scripts:  Sometimes scripts don't run in the same
environment as you're used to, as a user.  So it can be better to write
the full path to any command, rather than just use the command name, and
hope that it's in the search path of the script's environment.  /bin
probably is, but you never know with /sbin, and the various ones
inside /usr.

-- 
[tim@localhost ~]$ uname -rsvp
Linux 3.6.11-1.fc17.x86_64 #1 SMP Mon Dec 17 22:16:35 UTC 2012 x86_64

All mail to my mailbox is automatically deleted, there is no point
trying to privately email me, I will only read messages posted to the
public lists.



-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux