solaris系统普通用户无法执行su命令

普通用户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命令了

猜你喜欢

转载自blog.51cto.com/45545613/2162076
今日推荐