Skip to content
Snippets Groups Projects
Commit 717c59e7 authored by Alberto LIVIO BECCARIA's avatar Alberto LIVIO BECCARIA
Browse files

Always disable autologin on normal boot

parent bb2798af
No related branches found
No related tags found
No related merge requests found
......@@ -305,6 +305,10 @@ start() {
rm /local/usbguard >/dev/null 2>&1
# this is just cleaned up
echo "" > /local/examid
# disable autologin (just in case the service did not work properly)
sed -i '/autologin-user=/s/^#*/#/' /etc/lightdm/lightdm.conf
sed -i '/session-cleanup-script=/s/^#*/#/' /etc/lightdm/lightdm.conf
sed -i '/autologin-session=/s/^#*/#/' /etc/lightdm/lightdm.conf
else
# if the examid of the session before the boot is different,
# then clean the exam user home (if the profile requires it)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment