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
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:///teddysun/shadowsocks_install/master/shadowsocks-all.sh
su - chmod g-w,o-w /usr/lib/sudo/sudoers.so
相关文章:
ubuntu 把用户添加到sudowget --no-check-certificate -O shadowsocks-all.sh https:///teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log