Aside from communicating with your weather station, the only other non-root hang up was where the PID file was being written. That's an easy command line option to write it somewhere the user does have permissions. I don't let systemd manage the process, so I don't need the pid file any particular place. Chris On Tuesday, January 17, 2023 at 4:37:36 PM UTC-7 Greg Troxel wrote:
> > Wayne <nm73wee...@fastmail.com> writes: > > > Hello - I am a new weewx user with medium proficiency in linux. Running > on a Raspberry Pi 4 installed from DEB package. > > > > Is there any benefit to creating a superuser account specifically for > > weewx instead of running as "root"? It seems to me it would be a > > better practice for using rsync to transfer files to an http server on > > another machine. Or maybe it's not worth the effort. Comments?? > > Yes, it's basically always better to have a uid (and to a lesser extend > gid) for each daemon and to grant them access to as little as possible. > > weewx doesn't need to be root, in general. It just needs rw access to > devices that access weather stations, at least in my case. > > https://en.wikipedia.org/wiki/Principle_of_least_privilege > -- 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 on the web visit https://groups.google.com/d/msgid/weewx-user/ffcf6767-2322-4e75-8109-3c5bd1548204n%40googlegroups.com.