Really up to you, I am sure some folks will say you are best having a 
daemon such as WeeWX run as a user other than root. I run WeeWX as root and 
I suspect most folks do too. I am happy that the risks are fairly minimal. 
The steps to change your system such that WeeWX is run as a user other than 
root are fairly straightforward and are covered here 
<https://github.com/weewx/weewx/wiki/Run-as-a-non-root-user> in the wiki 
<https://github.com/weewx/weewx/wiki>. Of course if you continue to run 
WeeWX as root you probably need to setup root with passwordless ssh, 
arguably that is more involved than changing the WeeWX user, but then again 
you have already done that once so I am sure it can be easily done again :)

If I was doing things again I would do the same as I have now and leave 
WeeWX run as root and give root passwordless ssh. Not going to argue with 
anyone who disagrees though.

Gary

On Friday, 5 October 2018 20:25:20 UTC+10, David Hindley wrote:
>
> Gary - regarding the ssh point - which option would you recommend - change 
> the user that runs weewx to pi, or create ssh keys for the root user (which 
> I believe currently runs weewx)?
>
> David.
>
> On Fri, 5 Oct 2018 at 07:10, gjr80 <[email protected] <javascript:>> 
> wrote:
>
>> I presume that your working passwordless ssh is from your WeatherPi 
>> machine. Which user on WeatherPi has passwordless ssh? If it is, for 
>> example, user pi and WeeWX is being run as root then I expect WeeWX rsync 
>> will fail with the error shown. You need to make sure that the account that 
>> runs WeeWX has passwordless ssh access. So you may need to change the user 
>> that runs WeeWX or give the account that runs WeeWX (likely root unless you 
>> explicitly changed it) passwordless ssh access.
>>
>> Regarding pysftp, what did you do? what error did you come across? I 
>> just tried installing with pip on my RPI running raspbian stretch:
>>
>> $ sudo pip install pysftp
>>
>> and received a dependency error on package libffi. Installed libffi 
>> using:
>>
>> $ sudo ap-get install libffi-dev
>>
>> then ran the pysftp install again and it installed without error, it was 
>> slow but eventually it got there. If that does not solve your pysftp 
>> issue post the command you used to install it and the output you receive.
>>
>> Gary
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to