码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-08-20 17:57:15      阅读:440      评论:0      收藏:0      [点我收藏+]

标签:ash   acl   report   系统   执行   cat   use   port   user   

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

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

标签:ash   acl   report   系统   执行   cat   use   port   user   

原文地址:http://blog.51cto.com/45545613/2162076

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!