Force to change password after 30 days in Samba server

The Samba Server is basically used to share the critical document between internal users, therefore its always better to secure the user account from the hackers. Many time user won’t want to change the password as its difficult to remember new password but its security breach, therefore its always better to force users to change the password after a month or days.

In this post we are forcing users to change the password after a every 30 days, you can use the days value as per your requirement.

pdbedit -P “maximum password age” -C 2592000

You can change the value from 2592000 to any days, in above example to force the users to change the passwordafter 30 days, we are using 2592000.

pdbedit -P “maximum password age” -C your-number-of-days-value

Note :: The value is in seconds , therefore make sure that you are using the correct values

30 Days = 2592000 Seconds

For more details about Samba Servers subscribe to our mailing list and join our KTC Hosting 

About Anant 384 Articles
Senior technical writer