修改 /etc/pam.d/login ,linux 本地无法登陆

简介:

安装oracle 10G ,按文档要求修改

vi /etc/pam.d/login

添加下面语句

session    required     /lib/security/pam_limits.so

添加后,发现本地无法登陆,输入用户名和密码后,跳回输入前界面


原因是32位系统和64为系统写法不一样,需要对应填写,具体如下:

32位系统

session    required     /lib/security/pam_limits.so

64位系统

session    required     /lib64/security/pam_limits.so


















本文转自leonardos51CTO博客,原文链接:http://blog.51cto.com/leomars/1895254 ,如需转载请自行联系原作者








相关文章
|
3月前
|
Linux Shell
linux之/etc/default/useradd文件
linux之/etc/default/useradd文件
25 0
|
9天前
|
Linux 网络安全
linux免密登录报错 Bad owner or permissions on /etc/ssh/ssh_config.d/05-redhat.conf
linux免密登录报错 Bad owner or permissions on /etc/ssh/ssh_config.d/05-redhat.conf
17 1
|
3月前
|
Linux 数据安全/隐私保护
linux之/etc/login.defs文件
linux之/etc/login.defs文件
29 5
|
3月前
|
Linux
linux之/etc/skel目录
linux之/etc/skel目录
128 2
|
3月前
|
Shell Linux
linux shell脚本实现/etc/passwd文件是否被更改
linux shell脚本实现/etc/passwd文件是否被更改
15 3
|
3月前
|
存储 Web App开发 Linux
Linux文件:/etc/fstab
Linux文件:/etc/fstab
49 0
|
7月前
|
安全 Unix Linux
15.3.2 【Linux】系统的配置文件:/etc/crontab,/etc/cron.d/*
15.3.2 【Linux】系统的配置文件:/etc/crontab,/etc/cron.d/*
83 0
|
9月前
|
Linux
Linux系统无法启动问题及解决方案(/etc/fstab文件损坏,GRUB文件损坏)
Linux系统无法启动问题及解决方案(/etc/fstab文件损坏,GRUB文件损坏)
422 0
|
11月前
|
Linux 数据安全/隐私保护
2020.1-2020.2 kail linux gnome桌面环境root用户无法登陆解决办法
2020.1-2020.2 kail linux gnome桌面环境root用户无法登陆解决办法
290 0