Fix sudoers
This commit is contained in:
parent
4bdabe28b5
commit
4289754efe
1 changed files with 3 additions and 3 deletions
|
@ -82,12 +82,12 @@ service sshd restart
|
|||
# --- Sudo configuration ---
|
||||
echo "Configuring sudo..."
|
||||
|
||||
mkdir -p /etc/sudoers.d
|
||||
cat <<EOF > /etc/sudoers.d/99-vmh-newuser
|
||||
mkdir -p /usr/local/etc/sudoers.d
|
||||
cat <<EOF > /usr/local/etc/sudoers.d/99-vmh-newuser
|
||||
$USERNAME ALL=(ALL:ALL) NOPASSWD:ALL
|
||||
EOF
|
||||
|
||||
chmod 0440 /etc/sudoers.d/99-vmh-newuser
|
||||
chmod 0440 /usr/local/etc/sudoers.d/99-vmh-newuser
|
||||
|
||||
|
||||
# --- Final Instructions ---
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue