-
Notifications
You must be signed in to change notification settings - Fork 684
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The group must exist and must be empty. Reduced the number of commands to achieve these goals.
- Loading branch information
1 parent
58afa7c
commit 250cc8f
Showing
1 changed file
with
1 addition
and
6 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 |
---|---|---|
|
@@ -7,9 +7,4 @@ if ! grep -q "^${var_pam_wheel_group_for_su}:[^:]*:[^:]*:[^:]*" /etc/group; then | |
fi | ||
|
||
# group must be empty | ||
grp_memb=$(groupmems -g ${var_pam_wheel_group_for_su} -l) | ||
if [ -n "${grp_memb}" ]; then | ||
for memb in ${grp_memb}; do | ||
deluser ${memb} ${var_pam_wheel_group_for_su} | ||
done | ||
fi | ||
groupmems -g ${var_pam_wheel_group_for_su} -p | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
marcusburghardt
Author
Member
|
This change is breaking on Ubuntu (tested 22.04).
groupmems -g groupname -p
hangs with a password prompt even when running as root.Let me know if you want me to open an issue.