显示标签为“sudo”的博文。显示所有博文
显示标签为“sudo”的博文。显示所有博文

2009年10月3日星期六

is not in the sudoers file. This incident will be

1.#su
输入root密码。。。
2.#chmod u+w /etc/sudoers
3.#vi /etc/sudoers
在root ALL=(ALL) ALLZ下添加xxx ALL=(ALL) ALL 然后按esc键,再输入:wq!保存退出
4.#chmod u-w /etc/sudoers
问题解决!

2009年3月4日星期三

Xfce4下,让普通用户可以关机

其实就是权限的问题:
1。emerge sudo
2。修改 /etc/sudoers 添加如下内容:
bijianing ALL=(ALL) NOPASSWD: ALL
其中 “bijianing”是我的用户名,这句话内作用好象是可以让用户bijianing可以运行所有的命令,并且不需要密码。