Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chage: Drop PAM support #1184

Merged
merged 1 commit into from
Jan 16, 2025
Merged

chage: Drop PAM support #1184

merged 1 commit into from
Jan 16, 2025

Conversation

stoeckmann
Copy link
Contributor

@stoeckmann stoeckmann commented Jan 14, 2025

The PAM support was only enabled with configure option --enable-account-tools-setuid. The other account tools would use PAM then to verify that the user is granted elevated permissions for actions which normally only root can do.

In chage, however, any non-root user who does not specify the -l command line option is denied access in check_perms. The check for being root or not is done with getuid, so non-root users cannot change user account's aging information in any possible way since more than 18 years by now.

It's safe to say that nobody misses this non-existing feature. Biggest benefit is to get chage out of the ACCT_TOOLS_SETUID group of tools.

Copy link
Collaborator

@alejandro-colomar alejandro-colomar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm all for removing stuff. Thanks!

Reviewed-by: Alejandro Colomar <alx@kernel.org>

The PAM support was only enabled with configure option
--enable-account-tools-setuid. The other account tools would use PAM
then to verify that the user is granted elevated permissions for
actions which normally only root can do.

In chage, however, any non-root user who does not specify the -l
command line option is denied access in check_perms. The check for
being root or not is done with getuid, so non-root users cannot
change user account's aging information in any possible way since
more than 18 years by now.

It's safe to say that nobody misses this non-existing feature. Biggest
benefit is to get chage out of the ACCT_TOOLS_SETUID group of tools.

Reviewed-by: Alejandro Colomar <alx@kernel.org>
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
@hallyn hallyn merged commit d012c2b into shadow-maint:master Jan 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants