给所有用户sudo权限: vi /etc/sudoers ALL ALL=(ALL:ALL) NOPASSWD:/bin/ls :wq! 转载于:https://blog.51cto.com/yangzhiming/2405088