<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <pre>  Thanks&gt;&gt;
&gt;On 23/01/13 08:26, William Murray wrote:Allegedly, on or about 23 January 2013, William Murray sent:
&gt;&gt;<i> in ./NetworkManager/dispatcher.d/ and looks at new network
</i>&gt;&gt;<i> connections. 
</i>&gt;&gt;<i> If it sees one machine some criteria it calls a backup script
</i>&gt;&gt;<i> in /etc/cron.daily/ which rsyncs various directories between my laptop
</i>&gt;&gt;<i> and a desktop machine. This worked will in F17 and many
</i>&gt;&gt;<i> previous versions.
</i>&gt;&gt;<i>     In F18 the rsync command fails to connect:
</i>&gt;&gt;<i>   dbus-daemon[938]: Could not create directory '/root/.ssh'.
</i>&gt;&gt;<i>   dbus-daemon[938]: Host key verification failed.
</i>&gt;&gt;<i> 
</i>&gt;&gt;<i> If I run either of the scripts as root interactively then they work.
</i>&gt;&gt;<i> But not when NetworkManager tries  to run them. Any idea what might be
</i>&gt;&gt;<i> wrong? Both end already have /root/.ssh, so this error confuses me.
</i>&gt;
&gt;First thought:  The scripts run by the dispatcher probably aren't being
&gt;run as the root user.

Thanks...I tried echoing the output of 'whois' but that says root. 
&nbsp;&gt;
&gt;Second thought, unrelated to the problem, but a common enough gotcha for
&gt;any automatically run scripts:  Sometimes scripts don't run in the same
&gt;environment as you're used to, as a user.  So it can be better to write
&gt;the full path to any command, rather than just use the command name, and
&gt;hope that it's in the search path of the script's environment.  /bin
&gt;probably is, but you never know with /sbin, and the various ones
&gt;inside /usr.
&nbsp;
The thing is that rsync is being run - does it matter how?. I dug a bit
deeper though, and turned up the debug on sshd on the server, and diffed the output.

I see 'good' and 'bad' attempts are the same up to 
"expecting SSH2_MGG_NEWKEYS received [preauth]"
but that then a login launched by NetworkManager says
"Connection closed by XXX.YYY.ZZZ.??? [preauth]"
while one from me logged in as root says:
 "SSH2_MGG_NEWKEYS received [preauth]"

Does this give any clues?
    Bill


 
</pre>
    <pre class="moz-signature" cols="72">-- 
Bill Murray                     ----                       ATLAS
STFC RAL at: Bat 40 4-C28, CERN,1211 Meyrin, Geneve 23, Switzerland
  Tel:- CERN +41 22 7678432    or  RAL +44 (0)1235 446256</pre>
  </body>
</html>