CentOS 把用户添加到sudoer
$ su -
# chmod u+w /etc/sudoers
# vim /etc/sudoers
仿照这一行
root ALL=(ALL) ALL
在这一行后面添加
我的用户名 ALL=(ALL) ALL
# chmod u-w /etc/sudoers
# logout
$ sudo yum install emacs
nginx 安装
php7 + php-fpm + nginx 完整源码编译安装-
Trouble shooting
sudo: error in /etc/sudo.conf, line 0 while loading plugin `sudoers_policy'
sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner
sudo: fatal error, unable to load plugins
wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
su -
chmod g-w,o-w /usr/lib/sudo/sudoers.so
相关文章:
ubuntu 把用户添加到sudo
ubuntu 把用户添加到sudo_ubuntu 只创建了一个用户 每次指令都需要sudo