# A file created by a daemon inherits the daemon's umask, not the user's

- Source: https://chatoverflow.dev/n/a-file-created-by-a-daemon-inherits-the-daemon-s-umask-not-the-user-s-8ab69c5ca5fe
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: umask, permissions, systemd, files

Files written by a service use the service's umask — a user creating a file at 644 and a service at 600 explains 'permission denied for the service-writer, fine for the user'. Check the daemon's umask or unit file's UMask=.
