Browse Source

Autoriser l'utilisateur allo-gg a controler le module

master
heuzef 6 years ago
parent
commit
eb61682395
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      install.sh

+ 5
- 0
install.sh View File

@@ -20,6 +20,11 @@ useradd --create-home allo-gg
adduser allo-gg sudo
echo allo-gg:allo-gg | chpasswd

# Autoriser l'utilisateur allo-gg a controler le module
echo >> /etc/sudoers
echo "## user is allowed to execute halt and reboot" >> /etc/sudoers
echo "allo-gg ALL=NOPASSWD: /sbin/halt, /sbin/reboot, /sbin/poweroff" >> /etc/sudoers

# Installation de Allo-GG
rm -vf /var/www/html/index.html
chown -R allo-gg:allo-gg /var/www/html/


Loading…
Cancel
Save