Node.js命令行/批处理中如何更改Linux用户密码浅析-创新互联

前言

创新互联是一家专注于成都网站设计、成都网站建设与策划设计,麦盖提网站建设哪家好?创新互联做网站,专注于网站建设十多年,网设计领域的专业建站公司;建站业务涵盖:麦盖提等地区。麦盖提做网站价格咨询:028-86922220

本文主要介绍了Node.js命令行/批处理更改Linux用户密码的相关内容,分享出来供大家参考学习,下面话不多说了,来一起看看详细的介绍吧

hpasswd 可在批处理文件中批量更改Linux用户的密码。

用法:

chpasswd [options]

option主要为一些密码加密选项

-c, --crypt-method
Use the specified method to encrypt the passwords.
The available methods are DES, MD5, NONE, and SHA256 or SHA512 if your libc support these methods.
-e, --encrypted
Supplied passwords are in encrypted form.
-h, --help
Display help message and exit.
-m, --md5
Use MD5 encryption instead of DES when the supplied passwords are not encrypted.
-s, --sha-rounds
Use the specified number of rounds to encrypt the passwords.
The value 0 means that the system will choos

输入命令后,按 username:password 格式输入用户名密码,一行一个,如:

chpasswd
newghost:4567

另外有需要云服务器可以了解下创新互联scvps.cn,海内外云服务器15元起步,三天无理由+7*72小时售后在线,公司持有idc许可证,提供“云服务器、裸金属服务器、高防服务器、香港服务器、美国服务器、虚拟主机、免备案服务器”等云主机租用服务以及企业上云的综合解决方案,具有“安全稳定、简单易用、服务可用性高、性价比高”等特点与优势,专为企业上云打造定制,能够满足用户丰富、多元化的应用场景需求。


文章名称:Node.js命令行/批处理中如何更改Linux用户密码浅析-创新互联
文章链接:http://bzwzjz.com/article/jgdjj.html

其他资讯

Copyright © 2007-2020 广东宝晨空调科技有限公司 All Rights Reserved 粤ICP备2022107769号
友情链接: 成都网站设计 营销网站建设 成都网站设计 成都网站建设公司 成都网站建设 成都网站建设公司 移动网站建设 网站建设方案 响应式网站设计 外贸营销网站建设 成都网站制作 重庆企业网站建设 网站建设方案 定制网站制作 成都网站建设 营销型网站建设 成都商城网站建设 成都网站设计公司 四川成都网站建设 网站建设 四川成都网站设计 网站制作