[FIX] !add odoo user to sudoers and !/bin/bash

- Do NOT grant administrative access to the odoo system user
 - Restrict odoo system user to /bin/false shell.

fixes Yenthe666/InstallScript#2
pull/5/head
Temur Vibliani 10 years ago
parent d592e036c1
commit 7240f034b7

@ -107,9 +107,7 @@ else
fi fi
echo -e "\n---- Create ODOO system user ----" echo -e "\n---- Create ODOO system user ----"
adduser --system --quiet --shell=/bin/bash --home=$OE_HOME --gecos 'ODOO' --group $OE_USER adduser --system --quiet --shell=/bin/false --home=$OE_HOME --gecos 'ODOO' --group $OE_USER
#The user should also be added to the sudo'ers group.
adduser $OE_USER sudo
echo -e "\n---- Create Log directory ----" echo -e "\n---- Create Log directory ----"
mkdir /var/log/$OE_USER mkdir /var/log/$OE_USER

Loading…
Cancel
Save