Is there a way that I can disable change password

I have 20 computers in a high school lab and I want to set up a standard student log in. This is done, the problem is that students can change the password to anything, is there a way to block this? thanks.


Solution 1:

Use the -n option

-n, --mindays MIN_DAYS

Set the minimum number of days between password changes to MIN_DAYS. A value of zero for this field indicates that the user may change his/her password at any time.

So

sudo passwd <user> -n 10000 

See http://manpages.ubuntu.com/manpages/quantal/man1/passwd.1.html