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

How to modify user password commands in Linux system

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article mainly shows you how the Linux system to change the user password command, the content is easy to understand, clear, hope to help you solve the doubt, the following let the editor take you to study and learn the "Linux system how to change the user password command" this article.

In the Linux system, the user password is stored in the / etc/shadow file, in which the data are encrypted and cannot be modified directly. Ordinary users who want to change the password can use the passwd command to change it.

1. Passwd command to manually modify:

[root@localhost testuser] # passwd testuser Changing password for user testuser. New password: Retype new password: passwd: all authentication tokens updated successfully. [root@localhost testuser] # 2, passwd command, command line modification:

[root@localhost testuser] # echo'! @ # $5678' | passwd-- stdin testuser3, chpasswd commands, command line modification

[root@localhost testuser] # echo'testuserchpasswd Linux system Linux is a free-to-use and free-spread UNIX-like operating system. It is a multi-user, multi-tasking, multi-threaded and multi-CPU operating system based on POSIX. Using Linux, it can run major Unix tools, applications and network protocols.

The above is about "Linux system how to change user password command". If this article is helpful to you and think it is well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more attention to the industry information channel.

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

Development

Wechat

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

12
Report