openKylin论坛

 找回密码

大佬们求助 [复制链接]

需求:强制要求指定用户下次登录必须修改密码,目前想到的方法是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不会提示修改密码呢?
楼主
发表于 2023-11-13 23:38:42
回复

使用道具 举报

openKylin

GMT+8, 2024-5-6 12:27 , Processed in 0.028351 second(s), 18 queries , Gzip On.

Copyright ©2022 openKylin. All Rights Reserved .

ICP No. 15002470-12 Tianjin

快速回复 返回顶部 返回列表