maybe i did add the PATH mod myself - setting up systems so often for so long that no doubt i do some things without thought…
/var/log is no problem. rsyslogs(8) looks after perms, your rsyslog config tells it what they should be, weewx sends all msgs to rsyslog to write them. my weewx logs are owned by ‘weewx' /dev problem has not changed. easy using udev(7) - instructions on how to find your usb serial port, which is required for most weewx configs, should be prefaced by a demand to configure udev (a simple script should pick up 99% of cases). alternatively, there is usually a simple tool in linux that just requires lateral thinking - maybe tmpfiles.d(5) to adjust perms after boot (haven’t tried it on char device). my char files are owned by ‘weewx’ using udev /run/weewx/ needs to be read-write for ‘weewx' for pid files. i use tmpfiles.d(5) > On 22 Apr 2021, at 12:23 pm, Vince Skahan <[email protected]> wrote: > > On Wednesday, April 21, 2021 at 6:50:03 PM UTC-7 Graham Eddy wrote: > (the default on RPi is that $HOME/bin is added to PATH if it exists, so > /home/weewx/bin gets picked up automatically when log in as weewx) > > > Not true in any version of the pi os (Raspbian) from early 2016 to current > that I have running on various pi here. You probably added something to > your setup. > > Creating a 'weewx' user with homedir /home/weewx and its $PATH including > /home/weewx/bin is an interesting alternative to my suggestion of a one-liner > /etc/profile.d file, but it would be more complicated to make work. I don't > know quite how to address the user/group ownership on things and still > keeping access to /var/log and /dev working. Can you provide more details ? > > > > -- > You received this message because you are subscribed to the Google Groups > "weewx-development" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-development/a19542d6-f985-43a8-9d07-bf25171d502fn%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-development/a19542d6-f985-43a8-9d07-bf25171d502fn%40googlegroups.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "weewx-development" 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-development/9A7217CB-73B4-4304-B4EB-0A825847ADBE%40gmail.com.
