普通用户su提示错误
-bash-4.1$ sudo passwd root
Password:
oracle is not in the sudoers file. This incident will be reported.
解决办法:
进入root用户执行:
usermod -R root oracle
cat /etc/user_attr
或者把配置文件其他用户的配置复制一行修改下用户名也可
退出终端再进就可以执行su命令了
转载于:https://blog.51cto.com/45545613/2162076