Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
Update sudoers to only use drop-in files. Fix permissions for those f…
Browse files Browse the repository at this point in the history
…iles.
  • Loading branch information
chr0mag committed Nov 18, 2024
1 parent 835f5af commit a17bc85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ function cfg_accounts() {

#enable sudo capability for 'wheel' group members; relax pw input requirements for admin user
function cfg_sudoers() {
sed --in-place 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
# sed --in-place 's/^# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
echo "%wheel ALL=(ALL) ALL" >> /etc/sudoers.d/10-wheel-group
echo "User_Alias ADMINS = ${USER}" >> /etc/sudoers.d/14-admin-timestamp
echo "Defaults:ADMINS timestamp_timeout=15, timestamp_type=global" >> /etc/sudoers.d/14-admin-timestamp
chmod 440 /etc/sudoers.d/*
}

#bootloader installation
Expand Down

0 comments on commit a17bc85

Please sign in to comment.