Just to answer my own question experimentally and for future me via the search engine, I built a quick vagrant deb12 vm to test the package installer and if sudo was/wasn't needed thereafter.
- After installation which runs as user 'vagrant', all the content in /etc/weewx are user=weewx group=weewx and the installer indeed added group 'weewx' to the groups the user that installed the dpkg (via sudo) had associated with its account. - I then ran "weectl extension install https://github.com/poblabs/weewx-belchertown/archive/refs/heads/master.zip" to install the skin, again as user 'vagrant'. The result was /etc/weewx/skins/Belchertown that was installed was user=vagrant (the user that ran weectl) and again group=weewx (inherited from parent directory). - I then tried to edit a file under that skin which worked fine via the account being in group weewx. - Uninstalling the skin also worked fine. After this everything under /etc/weewx was still weewx:weewx except the weewx.conf and backup files and the /etc/weewx/bin/installer directory created by the extension installer, which were vagrant:weewx since that was the user that ran weectl. Conclusion is that once you install weewx, you do *'not'* need to use sudo to add/delete/edit skins and extensions. (Thanks Matthew - awesome job battling that for sure !) On Wednesday, January 1, 2025 at 5:42:03 AM UTC-8 Auchtermuchty Weather wrote: > I've had no problems with the v5 program weectl, though I sudo it. > > I don't log in as weewx, indeed it was setup by WeeWx as nologin: > > weewx:x:102:110::/var/lib/weewx:/usr/sbin/nologin > > > > On Wednesday, 1 January 2025 at 00:34:48 UTC vince wrote: > >> Tom - procedural question for you. Given that v5 runs as user 'weewx' >> for packaged installations, and since that user typically is set to >> nologin, should there be a note someplace saying that if folks want to run >> weectl as their personal username (whatever that is) they need to add >> themselves to group weewx ??? >> >> There is some stuff re: usermod buried in the package build spec file for >> RH and postinst for Debian but I can't find mention in the wiki nor faq, >> although as you've mentioned we are probably long past 'peak docs' at this >> point. >> >> pip user here, so I haven't done much fiddling with package installs and >> the run weewx as user weewx nuances at all >> >> On Tuesday, December 31, 2024 at 3:29:31 PM UTC-8 Tom Keffer wrote: >> >>> It's all in the Upgrade Guide >>> <https://www.weewx.com/docs/5.1/upgrade/#upgrading-to-v50>. >>> >>> On Tue, Dec 31, 2024 at 2:32 PM Michael Serowik <mser...@gmail.com> >>> wrote: >>> >>>> Happy New Year. >>>> >>>> Here is my current setup >>>> >>>> weewx 5.0.1 >>>> debian 12.8 >>>> Davis Vantage Pro 2 Weather Station. >>>> >>>> >>>> I am trying to install teh belchertown skin and when I issus the >>>> following command sudo wee_extension --install >>>> weewx-belchertown-release-1.3.1.tar.gz I get the following error listed >>>> below >>>> >>>> weewx@wyse-weewx:~$ sudo wee_extension --install >>>> weewx-belchertown-release-1.3.1.tar.gz >>>> sudo: wee_extension: command not found >>>> >>>> but when I issue this command >>>> >>>> >>>> weewx@wyse-weewx:~$ weectl extension install >>>> weewx-belchertown-release.1.3.1.tar.gz >>>> Using configuration file /etc/weewx/weewx.conf >>>> Install extension 'weewx-belchertown-release.1.3.1.tar.gz' (y/n)? y >>>> Extracting from tar archive weewx-belchertown-release.1.3.1.tar.gz >>>> Saving installer file to /etc/weewx/bin/user/installer/Belchertown >>>> Saved copy of configuration as /etc/weewx/weewx.conf.20241231165941 >>>> Finished installing extension Belchertown from >>>> weewx-belchertown-release.1.3.1.tar.gz >>>> >>>> so i want to make sure that is the correct command or is there >>>> something wrong on my end >>>> >>>> Thanks >>>> Mike >>>> >>>> -- >>>> 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+...@googlegroups.com. >>>> To view this discussion visit >>>> https://groups.google.com/d/msgid/weewx-user/9a27b7f7-3a44-4058-bf7e-3d0c3fe8932fn%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/9a27b7f7-3a44-4058-bf7e-3d0c3fe8932fn%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- 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/9ec11d64-1ee8-405f-a338-7071226acce3n%40googlegroups.com.