2
我想通過在特定行中刪除#
或在其中添加#
來編輯Solaris中的sudoers文件,因此如何爲此編寫腳本?我sudoer示例文件如下:編輯shell腳本中的sudo文件
# The following line allows su without options/arguments and sux to user root
Cmnd_Alias SU_ROOT = /usr/bin/su "",\
/usr/local/bin/sux - root
# Defaults specification
Defaults:%saptb !authenticate
# User privilege specification
%saptb ALL=(root)SU_SAP
#Uncomment this line when SAP requires root access
%saptb ALL=(root)SU_ROOT
##### END SAP-TB specific ######
#
#
#Tivoli ITM Tools Team Sudo Right
#
%cgtools ALL=(root) NOPASSWD: /opt/IBM/ITM/bin/*
在這上面sudoers文件,我想的%saptb ALL=(root)SU_ROOT