linux password never expires command, linux password never expires linux modify user password never expires

How to set a user's password to never expire under linux?

Windows' handling of empty passwords is very special. Remote login is prohibited for users with blank passwords.

Linux's empty password does not prevent the security risks posed by remote logins. Also, even if a user with an empty password is prohibited from logging in remotely, if a user or service under Linux is compromised, it can be further compromised by using Su/sudo to switch to a user without a password.

So Linux passwords can be empty, but are now disabled by default. Now to set the password, most distributions also need to detect if it is a weak password.

How to set a user's password to never expire under linux?

To set the user's password expiration time, you can use usermod -e to set it. If you want to set the user's password expiration time uniformly, you need to modify /etc/login.defsPass inside MAXudays, for example, to change the password of all users, the expiration time is 30 days: Pass MAXudays 30 If the value is 99999, the password will never expire. Or directly modify /etc/s black line grass roots: XXXXXX: 15:: "U"? ::::::::::::::::::::::::::::::::::::::::::::::::Will" The location of U" is set to null or 99999 is set to not expire

How to set a user's password to never expire under linux?

Run the command chage with administrator privileges. For example sudocage-m9999username, set the password of the user username to 99999 days

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324480753&siteId=291194637