Notify me of new comments via email. Notify me of new posts via email. This site uses Akismet to reduce spam. Learn how your comment data is processed.
Rate this:. Like this: Like Loading My account open Like Like. Very usefull, thanks for share! Leave a Reply Cancel reply Enter your comment here Using chage command you can also check password expiration date of a user in Linux, and of course change it. Now to check password expiration date of user deepak. So now the password is set to " never expire " for deepak. To change password expiration date of user deepak we will use " -M ".
Using -M we wet the maximum number of days during which a password is valid. So here we set password expiration after 30 days.
We have another tool passwd command in Linux which most of us mostly use to change password of user. But passwd command can do much more such as, check password status , reset password's failed login attempts , lock and unlock user and many more. You can also check password status of user with passwd command. Here -S will output a short information about the status of the password for a given account.
You can also check last password change date of a user using " passwd -S ". It's nice to be able to know just my password-change dates, and not those for everyone on the AD. Add a comment. Active Oldest Votes. Improve this answer. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Podcast Explaining the semiconductor shortage, and how it might end. Does ES6 make JavaScript frameworks obsolete? Featured on Meta.
0コメント