CentOS普通用户添加sudo权限环境:VMware下的CentOS操作:[kiwi@localhost ~]$ sudo apt-get install samba <-----普通用户kiwi要进行sudo操作[sudo] password for shaokn: <-----input passwdkiwi is not in the sudoers file. This incident will be reported.提示用户shaokn不在sudoers文件里.我们要做的就是把kiwi用户添加到sudoers文件里,怎么做呢?1.进入超级用户模式.[kiwi@localhost ~]$ su -Password: <-----input passwd[root@localhost ~]# <-----root超级用户2.添加sudoers文件写权限.[root@localhost ~]# chmod u+w /etc/sudoers <-----注意sudoers文件路径3.添加kiwi到sudoers文件里. 在"root ALL=(ALL) ALL"这行下添加"kiwi ALL=(ALL) ALL".[root@localhost ~]# vim /et
...
继续阅读
(32)