On 2023/04/16 15:42, Martin Schröder wrote: > Am So., 16. Apr. 2023 um 15:38 Uhr schrieb Stuart Henderson > <s...@spacehopper.org>: > > So let's also add "newly created directories" to the list of things > > where umask messes up pkg_add ;) In this case, it will be > > /usr/local/lib/python3.10/encodings/ > > Probably more. In the end I did > sudo chmod -R go+rX /usr/local/lib/python3.10/ > as > sudo chmod -R go+rX /usr/local/lib/python3.10/encodings/ > > wasn't enough. :-( > > Best > Martin >
At this point I think you might be better served by dumping the package list, uninstalling them all, and reinstalling with 022 umask. Borrowing the old instructions from the 5.5 time_t flag day release notes, this also keeps the "auto installed" / "manually installed" markers (so that pkg_delete -a still behaves how you want): pkg_info -mq >/root/pkg_list_manual pkg_info -q >/root/pkg_list_full pkg_delete -X /var/db/pkg/*-firmware-[0-9]* pkg_add -z -l /root/pkg_list_manual pkg_add -za -l /root/pkg_list_full