home.social

#umask — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #umask, aggregated by home.social.

  1. 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

  2. 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/

  3. 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.