|
|
发表于 2005-5-14 19:03:18
|
显示全部楼层
如果可以請選用google.com/linux搜索
Host_Alias ALLI = 192.168.7.112,shlinux
User_Alias ALLU = peter,lfm
Cmnd_Alias ALLC = /sbin/fdisk,/bin/mount,/sbin/shutdown
ALLU ALLI = ALLC
其中
Host_Alias行中的ALLI為變數一定要大寫,其他的行也一樣,命令要告訴地址
ALLU ALLI = ALLC
即
允許peter,lfm兩個用戶在192.168.7.112,或shlinux上運行
/sbin/fdisk,/bin/mount,/sbin/shutdown這些命令...
要說一樣是su -才對. |
|