theitroad
  • 首页
  • 解决方案
当前位置:theitroad>通过bash脚本设置和重置用户密码

通过bash脚本设置和重置用户密码

时间:2019-08-20 17:58:29  来源:igfitidea点击:

如何在Linux系统上通过bash脚本设置和重置用户密码。

创建新用户并设置密码。

用户名:test

密码:test123

#!/bin/bash
useradd test;echo test123|passwd test --stdin

重置密码

用户名:Hyman

密码:sort_1t_out

#!/bin/bash
echo sort_1t_out|passwd Hyman --stdin
上一篇
下一篇

相关推荐

在CentOS和Red Hat中找不到man命令

在CentOS和Red Hat中找不到man命令

如何管理Jenkins凭证

如何管理Jenkins凭证

openerp 7.x管理员密码

openerp 7.x管理员密码

MySQL备份bash脚本

MySQL备份bash脚本

相关推荐
  • postgres数据库备份脚本
  • 处理w00tw00t.at.blackhats.romanian.anti-sec问题
  • 在ubuntu14.04 LTS上用Google Authenticator保护ssh
  • 在Apache和Nginx中防止SSL Drown 攻击 CVE-2016-0800
  • 如何不解压,直接查看.gz压缩文件中的内容
  • 如何在Git中删除文件和目录
  • 使用sed命令删除html标记
  • 如何删除Linux中从源代码安装的python模块
  • 如何在CentOS 6.x和Redhat 6.x中重置忘记的root密码
最近更新
  • 如何在CentOS 6.x和Redhat 6.x中重置忘记的root密码
  • 如何删除Linux中从源代码安装的python模块
  • 使用sed命令删除html标记
  • 如何在Git中删除文件和目录
  • 如何不解压,直接查看.gz压缩文件中的内容
  • 在Apache和Nginx中防止SSL Drown 攻击 CVE-2016-0800
  • 在ubuntu14.04 LTS上用Google Authenticator保护ssh
  • 处理w00tw00t.at.blackhats.romanian.anti-sec问题
  • postgres数据库备份脚本
  • Postfix+SES:SASL认证失败
标签

theitroad

才须学也。非学无以广才,非志无以成学。莫等闲,白了少年头,空悲切。

本站导航
  • 网站地图
关于
  • 关于我们
  • 隐私政策
友情链接
    © 2020 版权所有
    theitroad