On Mon, Jul 15, 2024 at 9:34 PM Greg Wooledge <g...@wooledge.org> wrote: > > On Tue, Jul 16, 2024 at 08:02:45 +0700, Max Nikulin wrote: > [...] > > systemd.exec(5) > > > > > UMask= > > > Controls the file mode creation mask. Takes an access mode in octal > > > notation. See umask(2) for details. Defaults to 0022 for system units. > > > For user units the default value is inherited from the per-user service > > > manager (whose default is in turn inherited from the system service > > > manager, and thus typically also is 0022 — unless overridden by a PAM > > > module). In order to change the per-user mask for all user services, > > > consider setting the UMask= setting of the user's user@.service system > > > service instance. The per-user umask may also be set via the umask field > > > of a user's JSON User Record[5] (for users managed by > > > systemd-homed.service(8) this field may be controlled via homectl > > > --umask=). It may also be set via a PAM module, such as pam_umask(8). > > [5] refers to <https://systemd.io/USER_RECORD>. > > I defy any human being to read that web page and tell me WHAT FILE TO > EDIT, and WHAT TO PUT IN IT, to effect a change to your environment.
++ When I read that, I tried it myself: root@raptor:~# grep -IR 'jwalton@.service' /etc root@raptor:~# grep -IR 'jwalton@.service' /lib root@raptor:~# > I can't find anything concrete in there. Just a bunch of jabber. Welcome to the world according to Pottering. > The only filename I could find by skimming that thing was ~/.identity, > and that's buried *deep* inside the page. Is that the file you're > supposed to create and/or edit? What do you put in it to make your > programs have a umask of your choosing? Is there an example? Jeff