-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
1 parent
950cd40
commit d012c2b
Showing
5 changed files
with
2 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,6 @@ pamd_files = \ | |
passwd | ||
|
||
pamd_acct_tools_files = \ | ||
chage \ | ||
chgpasswd \ | ||
groupadd \ | ||
groupdel \ | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters