I've been trying to use the wiki to resolve this on my own, but can't seem 
to sort it out. This page suggests I create a rules file, but no indication 
on what that file should be named...  weewx.rules?  
https://github.com/weewx/weewx/wiki/systemd 

I hunted up an older page 
https://github.com/weewx/weewx/wiki/Run-as-a-non-root-user that cites an 
example for Vantage (name the file vpro.rules) but what about other 
devices? In any event, the contents of the rules file is different than the 
more recently edited page. Which should I use? 

SUBSYSTEM=="usb", ATTR{idVendor}=="your_value", ATTR{idProduct}=="your_value", 
ACTION=="add", GROUP="weewx", MODE="0664"
 or 
SUBSYSTEM=="usb", ATTRS{interface}=="CP2102 USB to UART Bridge Controller", 
MODE: = "664", GROUP = "wxuser"

I get that one page is about systemd specifically, which I am using, but both 
address the need to run weewx as a non-root user. If someone could point me to 
some documentation on how to switch from running weewx as root to a non-root 
user, that would be great! I probably should have set it up that way initially, 
regardless of rsync, as running as root always seems like a risky idea.

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/aaab2dd1-376f-4f89-82a6-8ff03d032c9e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to