#umask

2025-05-02

Encapsulating the atrocity of umask handling with Python's walrus operator:

os.umask(current_umask := os.umask(0))

This isn't clearly *better*, but at least it's clearly shorter. Without `:=`, we'd need two lines:

current_umask = os.umask(0)
os.umask(current_umask)

Note: The awkwardness is a necessary consequence of how POSIX handles umask. Also, neither version is threadsafe.

#Python #WalrusOperator #umask

2024-03-22

Nextcloud umask – trial and error

Here’s a quick guide for those of you running nextcloud and have a very specific set of circumstances like I do, pertaining to the docker umask.

#2024 #docker #nextcloud #permissions #umask #unraid

https://novakeith.net/2024/03/22/nextcloud-umask-trial-and-error/

2022-11-08

Tuntuu siltä, että #rolling-distroihin käynyt virta on tyystin tappanut perinteiset vakaat jakelut. Enää #Debian ja #UbuntuLTS ovat jäljellä, ja jälkimmäisessä on niin paljon inhottavaa (#Snap, outo #umask) josta eroonpääsy on tuskallista, ettei millään hotsittaisi.

Confindustria ᵖᵃʳᵒᵈʸConfindustria@sociale.network
2021-01-25

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst