Centos中如何临时禁用用户?
时间:2024-01-01 18:28:41
linux中临时禁用用户
1.在/etc/passwd文件中找到禁用用户所在行,在该行首添加#
/etc/passwd
#coderbolg:x:500:500::/home/coderbolg:/bin/bash
2.在/etc/shadow 文件中找到禁用用户所在行,在第二个字段(密码加密字段)前添加!或者*
/etc/shadow 一般该文为只读属性,不建议修改
coderbolg:*$1$HsYY3Xxn$iDxguvDB8vsSeM3VjxKbq/:14817:0:99999:7:::
3、锁定账号 newuser1a
# usermod -L newuser1
4、解除对 newuser1 的锁定
# usermod -U newuser1
标签:Centos,临时禁用用户
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Virtualbox增强功能安装不了怎么办?Virtualbox增强功能安装失败的解决办法
2023-10-26 21:44:39
![](https://img.aspxhome.com/file/2023/6/a321208_0s.jpg)
WPS文字2013的绘图工具栏在哪里
2023-05-21 02:43:17
怎么用U盘启动盘手动ghost备份系统
2023-02-26 18:05:25
![](https://img.aspxhome.com/file/2023/3/a295405_0s.jpg)
wps文字教程怎样在wps中添加新字体
2023-11-06 18:57:16
利用Excek函数和倒减法实现不规律统计
2023-04-05 10:05:36
AMD显卡如何提高帧数?AMD显卡设置提高fps教程
2023-01-11 05:51:21
![](https://img.aspxhome.com/file/2023/7/a328356_0s.png)
巧用WPS表格数组公式分析班级学生成绩
2023-04-19 23:09:39
![](https://img.aspxhome.com/file/2023/5/a165115_0s.gif)
解决新的WPS不能通过自定义序列自动填充序列的问题 如1234
2023-08-25 08:31:50
![](https://img.aspxhome.com/file/2023/2/a169472_0s.jpg)
“未受信任的企业级开发者”是什么意思?
2023-01-27 07:54:15
![](https://img.aspxhome.com/file/2023/2/a198812_0s.png)
wps表格如何添加密码图文教程
2023-01-17 11:50:53
高手支招解决笔记本win7系统外接麦克风没声音
2022-12-15 11:20:03
![](https://img.aspxhome.com/file/2023/4/a304022_0s.jpg)
windows10没有登录框?windows无登录框的解决方法
2022-02-21 21:03:12
![](https://img.aspxhome.com/file/2023/3/a301988_0s.jpg)
潮自拍怎么添加背景音乐?潮自拍添加背景音乐的方法
2022-02-22 02:03:32
![](https://img.aspxhome.com/file/2023/8/a334326_0s.jpg)
Win10系统电脑显示器黑屏提示输入不支持的解决办法
2023-05-23 00:42:49
Excel中怎样使用choose函数?
2023-10-04 00:25:41
![](https://img.aspxhome.com/file/2023/7/a161637_0s.jpg)
Word文档怎么去掉每段前面的黑点 Word文档去掉黑点的方法
2023-01-14 12:45:27
![](https://img.aspxhome.com/file/2023/5/22555_0s.png)
Excel 2019如何设置工作表对齐方式
2023-06-07 15:36:14
![](https://img.aspxhome.com/file/2023/7/a141117_0s.jpg)
Pr 入门教程「30」如何为多个剪辑设置音频电平?
2023-06-26 01:04:27
![](https://img.aspxhome.com/file/2023/4/a203724_0s.jpeg)
怎么处理word文档不显示图片
2023-12-14 16:59:51
Win10系统开启虚拟桌面的设置方法
2023-09-09 17:58:11
![](https://img.aspxhome.com/file/2023/2/a285043_0s.jpg)