-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
systemd-homed: --umask not honored #23007
Description
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
--umaskparameter ofhomectlshould take precedence over the system default stored in/etc/profile.
Unexpected behaviour you saw
The umask set with the
--umaskparameter ofhomectlis 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 runhomectl inspect, noticing the lineUMask: 0007. Finally, issueumaskand observe that the value mentioned is the system's default (e.g.0022).Optionally,
toucha file and confirm the permissions are not influenced by the umask set viahomectl.