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 <ls12@inf.ufpr.br>
parent a30a3a7d
......@@ -112,5 +112,5 @@ Se os terminais estão logados como alunos, deve ser possível ver as telas dos
</P>
<!-- html code generated by txt2tags 2.6 (http://txt2tags.org) -->
<!-- cmdline: txt2tags -\-target html ./doc/help.t2t -->
<!-- cmdline: txt2tags -\-target html ../bin/../le-italc-config/doc/help.t2t -->
</BODY></HTML>
......@@ -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.
generate_script_multiterminal
#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