You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/user
Abhijeet Kasurde 367cad21dc
[stable-2.18] user: Fix homedir permissions when UMASK is unset in /etc/login.defs (#85709)
When a user doesn't exist and user module is used to create the user and the
homedir, adduser is called which parses HOME_MODE from /etc/login.defs, and when
not set calculates the mode from UMASK from the same file.

When a user already exists without homedir, and the user module is used to add a
home dir, it incorrectly ignores HOME_MODE, resulting in a world-readable home
dir when UMASK is not set. This is for example the case in Debian trixie and
later, and likely Ubuntu 25.04 and later.

(cherry picked from commit 3030c79)

Signed-off-by: Lee Garrett <lgarrett@rocketjump.eu>
Co-authored-by: Lee Garrett <leegarrett@users.noreply.github.com>
Co-authored-by: Brian Coca <bcoca@users.noreply.github.com>
5 months ago
..
files user module, avoid chmoding symlink'd home file (#83956) (#84080) 1 year ago
meta
tasks [stable-2.18] user: Fix homedir permissions when UMASK is unset in /etc/login.defs (#85709) 5 months ago
vars Fix macos defaults (#79999) 2 years ago
aliases ansible-test - Remove AIX provisioning support. (#76747) 4 years ago