Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of changing user's password by linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail the methods of changing user passwords in linux. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Linux is a free and open source Unix-like operating system. Linux can be installed on a variety of computer hardware devices, from mobile phones, tablets, routers and video game consoles to desktops, mainframes and supercomputers.

Passwd command to change the user's password

Enter passwd (follow the prompts to enter the old password and the new password, note: if the password is too short, it will be prompted and re-entered)

[yuan@yuan ~] $passwdChanging password for user yuan.Changing password for yuan (current) UNIX password:NEW UNIX password:

Another function of passwd is to check the status of users' passwords

Passwd-S user name / / S must be uppercase

[root@yuan] # passwd-S rootroot PS 2018-08-08 0 99999 7-1 (Password set, SHA512 crypt.)

You can see that the Linux password is encrypted by the SHA512 algorithm.

You can also use the-- status command to check the password status

[root@yuan] # passwd-- status rootroot PS 2018-08-08 0 99999 7-1 (Password set, SHA512 crypt.) This is the end of linux's method of changing users' passwords. I hope the above content can be of some help to everyone and can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report