type
status
date
slug
summary
tags
category
icon
password

Windows

用户权限设定

1、系统用户查看
右键---我的电脑---管理
notion image
notion image
2、新建用户
notion image
notion image
3、用户添加到组
notion image
notion image
notion image
4、禁用用户
notion image
notion image

密码策略

1、密码长度要求
notion image
notion image
notion image

Linux

用户权限设定

1、系统用户查看
 
notion image
用户名:密码:用户ID:组ID:注释:家目录:登录Shell
2、新建用户
notion image
3、用户添加到组
新建组别---把刚才的test用户添加到组别
notion image
4、禁用用户
锁定用户账户(将用户test的密码锁定,禁止用户test通过密码登陆)
notion image

密码策略

1、密码长度
 
notion image
2、复杂度
 
notion image
● pam_pwquality.so:用于设置密码的复杂度要求。
 
● minlen=8:要求密码最少包含 8 个字符。
● minclass=4:要求密码包含至少 4 类字符(小写字母、大写字母、数字、特殊字符)。
● retry=3:用户输入不符合要求的密码时,允许重新输入的次数。
3、锁定策略
设置最大失败登录尝试次数
 
添加以下内容
 
● deny=5:允许最多 5 次失败登录尝试。
● unlock_time=900:账户锁定时间为 900 秒(15 分钟)。
notion image
Ubuntu安装aria2Windows必备效率软件
  • Twikoo