linux 普通用户添加sudo权限

chmod u+w /etc/sudoers
vi /etc/sudoers, add: user ALL(ALL) ALL under root ALL=(ALL) ALL

chmod 0440 /etc/sudoers

猜你喜欢

转载自chembo.iteye.com/blog/1845202