diff options
author | Andreas Henriksson <andreas@fatal.se> | 2020-01-09 21:06:17 +0100 |
---|---|---|
committer | Tomáš Mráz <t8m@users.noreply.github.com> | 2020-01-10 12:21:24 +0100 |
commit | b92d8459e788233223e328ab0e79980e3cd44d97 (patch) | |
tree | 42ac0fed6e11fd8e5b22f251cdf4b0db7df54d73 /modules | |
parent | 41e2c34bd01932fe55a32b3aa94aba5c0f9d2343 (diff) | |
download | pam-b92d8459e788233223e328ab0e79980e3cd44d97.tar.gz pam-b92d8459e788233223e328ab0e79980e3cd44d97.tar.bz2 pam-b92d8459e788233223e328ab0e79980e3cd44d97.zip |
pam_umask: add new 'nousergroups' module argument
This is particularly useful when pam has been built with the new
--enable-usergroups configure switch, allowing users to override
the default-enabled state and disabling usergroups at runtime.
This is synonymous but opposite to current and previous pam_umask
default that could be changed to enabled at runtime with the usergroups
argument.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_umask/pam_umask.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pam_umask/pam_umask.c b/modules/pam_umask/pam_umask.c index f101919f..1446c6de 100644 --- a/modules/pam_umask/pam_umask.c +++ b/modules/pam_umask/pam_umask.c @@ -79,6 +79,8 @@ parse_option (const pam_handle_t *pamh, const char *argv, options_t *options) options->umask = strdup (&argv[6]); else if (strcasecmp (argv, "usergroups") == 0) options->usergroups = 1; + else if (strcasecmp (argv, "nousergroups") == 0) + options->usergroups = 0; else if (strcasecmp (argv, "silent") == 0) options->silent = 1; else |