On the BBC's Econet system unless a machine was 'protected', any other machine on the network had access to its RAM - including the keyboard buffer. So it was fairly easy to get access to the teacher's password, especially if they always used the same machine and you could make sure in advance to unprotect it!