如何讓用戶有大部分權限,但是不能重啟和關機 - Linux
By Franklin
at 2011-05-20T15:08
at 2011-05-20T15:08
Table of Contents
我在CentOS的sudoers文件里加入用戶 usera ,像下面這樣
root,usera ALL=(ALL) ALL
usera 登入系統以后執行 sudo bash 之后就取得root shell了
請問如何禁止 usera 執行 reboot 和 shutdown 指令啊
我已經試過下面這個了,還是可以 reboot
User_Alias OP = usera
OP ALL = !/usr/bin/reboot , !/sbin/shutdown, ALL
--
root,usera ALL=(ALL) ALL
usera 登入系統以后執行 sudo bash 之后就取得root shell了
請問如何禁止 usera 執行 reboot 和 shutdown 指令啊
我已經試過下面這個了,還是可以 reboot
User_Alias OP = usera
OP ALL = !/usr/bin/reboot , !/sbin/shutdown, ALL
--
Tags:
Linux
All Comments
By Elma
at 2011-05-22T17:42
at 2011-05-22T17:42
By Bethany
at 2011-05-26T05:22
at 2011-05-26T05:22
By Edith
at 2011-05-30T21:23
at 2011-05-30T21:23
Related Posts
telnet 指令防呆?
By Skylar Davis
at 2011-05-20T14:37
at 2011-05-20T14:37
Riad 訊息請教?
By Jacky
at 2011-05-20T09:47
at 2011-05-20T09:47
Ubuntu視窗邊框消失,metacity --replace的問題
By Anonymous
at 2011-05-20T02:03
at 2011-05-20T02:03
有關GRUB Error 17以及作業系統安裝問題
By Gilbert
at 2011-05-20T01:47
at 2011-05-20T01:47
有關GRUB Error 17以及作業系統安裝問題
By Hardy
at 2011-05-20T01:00
at 2011-05-20T01:00