Skip to content

Commit 19dd613

Browse files
authored
Use drop-in for passwordless sudo
1 parent b19315c commit 19dd613

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RHEL-10.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ sudo sed -i 's/umask 022/umask 077/g' /etc/bashrc
3838
sudo chmod 700 /home/*
3939

4040
# Passwordless sudo
41-
sudo sed -i 's/# %wheel/%wheel/' /etc/sudoers
41+
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sudoers.d/passwordless | sudo tee /etc/sudoers.d/passwordless > /dev/null
4242

4343
# Remove nullok
4444
sudo /usr/bin/sed -i 's/\s+nullok//g' /etc/pam.d/system-auth

0 commit comments

Comments
 (0)