New answers tagged

0

Testing for the absence of users while connected via SSH is never going to indicate that there are no users because you are logged in when you run it. The simpler solution would be to do the shutdown in the same script doing the rsync. Adding something to the end similar to: while true; do [ -z "$(who)" ] && /sbin/poweroff done If the machine ...


3

Converting my comments/thoughts into an answer. It appears that you have given all of the students: Administrative control over all the computers. Anonymity by allowing them to all share the same admin account. This is probably a suboptimal configuration in a typical classroom setting. Although you claim that the students are not administrators on the ...



Top 50 recent answers are included