Least privilege applied to people. These commands persist, so they run on the student's VM, not the book runner. Ask: why verify with getent instead of trusting adduser's messages?
Repair: sudo usermod -aG sudo,users student_admin from another sudo account. The refusal for student_user is the evidence we wanted.