Add this one to the wiki or the FAQ !

On Wednesday, May 21, 2025 at 5:04:00 PM UTC-7 James B wrote:

> *Thank you* so much, John, Matthew, Vince.  This totally worked.  *Problem 
> solved*.  Here's notes to remind me in the future, with your fixes:
>
> Settinng up RSYNC as weewx user for weewx 5.+
>
> 1. ps aux | grep "weewx" (confirm user weewx running weewxd)
> 2. log in as weewx
>      sudo usermod -s /usr/bin/bash weewx
>      sudo su weewx
> 3. ssh-keygen
> 4. ssh-copy-id   your_remote_server_goes_here
> 5. ssh to   your_remote_server_goes_here   (see if you can successfully 
> ssh without password)
> 6. rsync test files to    your_remote_server_goes_here   (see if rsync is 
> working from cmd line)
> 7. exit weewx user
> 8. sudo usermod -s /usr/sbin/nologin weewx
> 9. check weewx log files -- should be working!
> On Wednesday, May 21, 2025 at 1:12:12 PM UTC-4 vince wrote:
>
>> oops - that is /usr/sbin/nologin of course.  Sorry.
>>
>> sudo usermod -s /usr/bin/bash weewx              # temporarily change the 
>> shell to a valid one
>> sudo su weewx                                    # now this will work
>>
>> (do anything requiring running as user weewx)
>>
>> sudo usermod -s /usr/sbin/nologin weewx           # reverse the temporary 
>> change
>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/weewx-user/be9fa06c-da6a-4da2-a00a-02fe7d892c5cn%40googlegroups.com.

Reply via email to