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.

2

1 Answer

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

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like