安装好Debian后还不能使用sudo
如果没有安装sudo,则在root用户下apt-get install sudo 在root设置sudoers配制文件 chmod +w /etc/sudoers vim /etc/sudoers
添加一行 username ALL=(ALL) ALL 其中username是你的用户名,保存
更改sudoers文件权限 chmod 0440 /etc/sudoers 退出root
转贴自:http://blog.chinaunix.net/u1/51074/showart_429833.html
本文介绍如何在Debian系统中安装并配置sudo工具,包括使用root用户安装sudo、编辑sudoers文件以及设置特定用户的sudo权限。
379

被折叠的 条评论
为什么被折叠?



