Debian中普通用户添加sudo权限

安装sudo

debian默认是没有安装sudo工具的
使用下面的命令安装sudo工具

apt-get install sudo

添加/etc/sudoers文件的写属性

chmod +w /etc/sudoers

编辑/etc/sudoers

添加下面行

root ALL=(ALL)ALL
user ALL=(ALL)ALL

去掉/etc/sudoers文件的写属性

chmod -w /etc/sudoers

你可能感兴趣的:(Debian中普通用户添加sudo权限)