How to set the user password to never expire in linux?
Open the terminal, enter the command: [sudo gedit / etc/login.defs], enter the administrator password
[PASS_MAX_DAYS] modify it to [99999] and click Save. (valid only for users created after setting, and the expiration time of existing user passwords remains unchanged)
Create a user [sudo useradd + user name] and create a user password [sudo pawwsd + user name]
Just enter the password.
These are the details of how to set user passwords to never expire under linux. Please pay attention to other related articles for more information.