If you've followed Tip 50, on page 113, which describes how to make Ubuntu suitable for children, you might also want to occasionally deac-
Take complete control of desktop effects and animations M 131
tivate your child's account—as punishment for misdeeds, perhaps, or just to force them to do something other than browse the Internet all day!
The following command will effectively deactivate a user's password, making it so they can no longer log in. All settings and files belonging to the user will remain in-tact: $ sudo passwd -l username
Replace username with the user's username.
To re-enable the account after the errant youngster has paid her/his penance, type the following:
$ sudo password -u username
Was this article helpful?