Correction problème accès write pour authorized_servers.txt
This commit is contained in:
parent
986abb12ab
commit
7c1eaa03b1
@ -70,7 +70,7 @@ function servers_access_control() {
|
||||
|
||||
"2")
|
||||
echo -e "Veuillez bien vérifier la syntaxe de votre configuration avant de valider cette dernière.\nPour plus d'informations, consultez la documentation de Monosphere."
|
||||
nano /opt/public/servers/authorized_servers.txt
|
||||
sudo nano /opt/public/servers/authorized_servers.txt
|
||||
;;
|
||||
|
||||
"3" | "quit")
|
||||
|
||||
@ -65,7 +65,7 @@ for userinfo in ${userfile}; do
|
||||
if ! grep -qo "^${user} ALL=(ALL) NOPASSWD:" /etc/sudoers; then
|
||||
echo "${user} ALL=(ALL) NOPASSWD: /usr/local/bin/ttyplay*" | sudo EDITOR='tee -a' visudo
|
||||
echo "${user} ALL=(ALL) NOPASSWD: /bin/ls*" | sudo EDITOR='tee -a' visudo
|
||||
echo "${user} ALL=(ALL) NOPASSWD: nano /opt/public/servers/authorized_servers.txt" | sudo EDITOR='tee -a' visudo
|
||||
echo "${user} ALL=(ALL) NOPASSWD: /usr/bin/nano /opt/public/servers/authorized_servers.txt" | sudo EDITOR='tee -a' visudo
|
||||
fi
|
||||
mkdir /home/"${user}"
|
||||
ln -s /opt/public/scripts/server_menu.sh /home/"${user}"/server_menu.sh
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user