以普通帳號執行root權限 - Linux

Table of Contents

在我的工具書中
它是以fc9在做解說
但是用#visudo指令後
裡面的內容有些許不同(我的系統是debian 5)
以下是d5的內容
# /etc/sudoers
……

# User privilege specification
root ALL=(ALL) ALL

# Uncomment to allow members of group sudo to not need a password
# (Note that later entries override this, so you might need to move
# it further down)
# %sudo ALL=NOPASSWD: ALL
--------------------------------------------
在fc9是將下文字的#去掉
##Allows people in group wheel to run all commands
%wheel ALL=(ALL) ALL

可是在上述的內容中找不到相同的
我想是不是將最後一個的#去掉就可以達到相同的效果呢?

--

All Comments

Enid avatarEnid2009-09-07
我是習慣增加一行{帳號} ALL=(ALL) ALL
然後再重新開起終端機
Olive avatarOlive2009-09-09
fc9那段是指使用群組來指定sudo權限的吧
Jacky avatarJacky2009-09-11
是在root下面加那一行對吧!?