在root用户密码修改后,登录直接退出的问题怎么解决?
修改PAM配置文件。
具体步骤:
使用root用户登录系统。
编辑/etc/pam.d/login文件,在文件的开头添加以下内容:
auth sufficient pam_rootok.so auth include system-auth
auth sufficient pam_rootok.so auth include system-auth
auth sufficient pam_rootok.so auth include system-auth
auth sufficient pam_rootok.so auth include system-auth
代码示例:
在文件/etc/pam.d/login中添加如下内容:
auth sufficient pam_rootok.so auth include system-auth
在文件/etc/pam.d/passwd中添加如下内容:
auth sufficient pam_rootok.so auth include system-auth
在文件/etc/pam.d/su中添加如下内容:
auth sufficient pam_rootok.so auth include system-auth
在文件/etc/pam.d/sudo中添加如下内容:
auth sufficient pam_rootok.so auth include system-auth
保存文件并重新启动系统。
上一篇:AfterthemanuallycreatedREADrequestissenttothetargetdevice,thedataobtainedremainsunchanged
下一篇:Aftertranslatingaviewitshouldscrollthefullcontentandifnotitshouldcropthecontentinthehiddenpart