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 ---
|
# --- Sudo configuration ---
|
||||||
echo "Configuring sudo..."
|
echo "Configuring sudo..."
|
||||||
|
|
||||||
mkdir -p /etc/sudoers.d
|
mkdir -p /usr/local/etc/sudoers.d
|
||||||
cat <<EOF > /etc/sudoers.d/99-vmh-newuser
|
cat <<EOF > /usr/local/etc/sudoers.d/99-vmh-newuser
|
||||||
$USERNAME ALL=(ALL:ALL) NOPASSWD:ALL
|
$USERNAME ALL=(ALL:ALL) NOPASSWD:ALL
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
chmod 0440 /etc/sudoers.d/99-vmh-newuser
|
chmod 0440 /usr/local/etc/sudoers.d/99-vmh-newuser
|
||||||
|
|
||||||
|
|
||||||
# --- Final Instructions ---
|
# --- Final Instructions ---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue