Centos系统普通用户开启sudo命令

Centos系统认是没有开启sudo命令,如下提示

[user@localhost ~]$ sudo ls /root

[sudo] password for user:

user is not in the sudoers file. This incident will be reported.

#

#需要编辑/etc/sudoers后添加,可以两种方式!

[root@localhost ~]# visudo

添加如下:

user ALL=(ALL) ALL

用户

%sa ALL=(ALL) ALL

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native