|
发表于 2005-1-11 09:33:42
|
显示全部楼层
:!! 你似乎知道我刚搞了sudo
刚用rf4.1,发现普通用户不能关机 :beat ,所以搞了一下sudo,你看一下就明白了:
[linuxnow@linuxpower test]$ cat /etc/sudoers
cat: /etc/sudoers: 权限不够
[linuxnow@linuxpower test]$ ll /etc/sudoers
-r--r----- 1 root root 633 1月 10 23:11 /etc/sudoers
[linuxnow@linuxpower test]$ su -
Password:
[root@linuxpower root]# tail /etc/sudoers
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
linuxnow linuxpower,localhost=/sbin/shutdown -h now
[root@linuxpower root]#
用户名是linuxnow
主机名是linuxpower,localhost
以前没有搞过,不知道这样对不对 但是普通用户可以关机了 |
|