openKylin论坛
标题:
大佬们求助
[打印本页]
作者:
fejl403
时间:
2023-11-13 23:38
标题:
大佬们求助
需求:强制要求指定用户下次登录必须修改密码,目前想到的方法是chage -d 0 username设置最后修改时间为0也就是立即修改,设置完后本地图形化登录会提示修改密码ssh登录不会提示,我查看sshd_config配置文件发现有usepam yes也就是使用pam认证,而/etc/pam.d/sshd 中引用了password-auth,
password-auth中有
password sufficient pam_unix.so sha512 shadow nullok try_first_pass use_authtok和system-auth一样都是读取shadow文件为什么图形化界面会提示而ssh不会提示修改密码呢?
欢迎光临 openKylin论坛 (https://forum.openkylin.top/)
Powered by Discuz! X3.3