Commit 3d486784 authored by Lior Spach's avatar Lior Spach

le-italc-config: Refs #1372 Give user 'professor' iTalc configuration file

It's necessary to give write permission to user 'professor' for a sucessful execution of imc's comands.
Signed-off-by: Lior Spach's avatarLior Spach <>
parent a30a3a7d
......@@ -112,5 +112,5 @@ Se os terminais estão logados como alunos, deve ser possível ver as telas dos
<!-- html code generated by txt2tags 2.6 ( -->
<!-- cmdline: txt2tags -\-target html ./doc/help.t2t -->
<!-- cmdline: txt2tags -\-target html ../bin/../le-italc-config/doc/help.t2t -->
......@@ -250,6 +250,9 @@ config_multiterminal () {
#Set config and create autorun script
imc -setconfigvalue Authentication/LogonAuthenticationEnabled=0 #Don't ask for login to enter italc. Only teacher can read private key.
#Give professor right to write to configuration file.
chown professor /etc/xdg/iTALC\ Solutions/iTALC.conf
chmod 0600 /etc/xdg/iTALC\ Solutions/iTALC.conf
if (who --users | awk -F " " '{print $1}' | grep -q "^professor$"); then #If teacher is logged in execute autorun script
su professor -c ".${SCRIPT_MULT_PATH}" #Run script, so teacher doesn't need to relogin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment