无法通过su - oracle进行用户切换 su: incorrect password
2016-06-03 17:32
781 查看
问题描述:
[root@gasdbadm01 etc]# passwd oracleChanging password for user oracle.
You can now choose the new password or passphrase.
A good password should be a mix of upper and lower case letters,
digits, and other characters. You can use a 5 character long
password.
A passphrase should be of at least 3 words, 5 to 40 characters
long, and contain enough different characters.
Alternatively, if noone else can see your terminal now, you can
pick this as your password: "bumpy$turn=cart".
Enter new password:
Re-type new password:
passwd: all authentication tokens updated successfully.
[root@gasdbadm01 etc]# su - grid
[grid@gasdbadm01 ~]$ su - oracle
Password:
su: incorrect password
[grid@gasdbadm01 ~]$
刚刚修改过密码却无法通过su - oracle进行用户切换
问题解决:
[root@gasdbadm01 etc]# ll /bin/su-rwsr-xr-x 1 root root 34904 Aug 25 2014 /bin/su
[root@gasdbadm01 etc]# vim /etc/pam.d/su
-bash: vim: command not found
[root@gasdbadm01 etc]# vi !$
vi /etc/pam.d/su
[root@gasdbadm01 etc]#
[root@gasdbadm01 etc]# cat /etc/pam.d/su
#%PAM-1.0
auth
sufficient
pam_rootok.so
# Uncomment the following line to implicitly trust users in the "wheel" group.
#auth
sufficient
pam_wheel.so trust use_uid
# Uncomment the following line to require a user to be in the "wheel" group.
# auth
required pam_wheel.so use_uid
auth
include
system-auth
account
sufficient
pam_succeed_if.so uid = 0 use_uid quiet
account
include
system-auth
password
include
system-auth
session
include
system-auth
session
optional
pam_xauth.so
[root@gasdbadm01 etc]#
将上面一行注释掉
相关文章推荐
- Oracle关于执行计划的简要分析
- Oracle ROWNUM用法和分页查询总结
- oracle表数据修复错误后恢复数据
- 通过存储过程更新表结构
- ORACLE 12C R2 RAC实战首发
- Oracle中查询当前数据库中的所有表空间和对应的数据文件语句命令
- Configure Oracle Enterprise Manager 12c In Silent Mode
- oracle中sign函数
- oracle锁定sga物理内存:pre_page_sga和lock_sga
- oracle 11g direct path read new feature
- oracle表空间
- Oracle学习——安装系列
- Oracle
- oracle线程数更改
- Oracle中start with...connect by子句的用法
- Oracle用户密码过期和用户被锁解决方法
- 能使Oracle索引失效的六大限制条件
- oracle打开SQL Developer时提示 enter full path name of java.exe
- oracle 取部分表备份的引用脚本
- Oracle中的job定时任务