Nemris · GitHub

systemd version the issue has been seen with

systemd 250 (250.4-2-arch)

Used distribution

Arch Linux

Linux kernel version used (uname -a)

Linux master 5.17.1-arch1-1 #1 SMP PREEMPT Mon, 28 Mar 2022 20:55:33 +0000 x86_64 GNU/Linux

CPU architecture issue was seen on

x86_64

Expected behaviour you didn't see

The umask set with the --umask parameter of homectl should take precedence over the system default stored in /etc/profile.

Unexpected behaviour you saw

The umask set with the --umask parameter of homectl is ignored, and the system default is used instead.

Steps to reproduce the problem

Create a fresh user with e.g. homectl create --umask=0007 john. Login as said user and run homectl inspect, noticing the line UMask: 0007. Finally, issue umask and observe that the value mentioned is the system's default (e.g. 0022).

Optionally, touch a file and confirm the permissions are not influenced by the umask set via homectl.

Read the original on github.com ↗