Dear to you,|
I don't quite understanding what different between "NOPASSWD:" and "(ALL)"...
So, would you mind to give me some hints ?
Russell Van Tassell wrote:
On Sat, Nov 15, 2008 at 11:07:25AM +0800, edwardspl ita org mo wrote:Russell Van Tassell wrote:On Fri, Nov 14, 2008 at 09:40:26PM +0800, edwardspl ita org mo wrote:For running with visudo : HOST = NOPASSWD: /usr/sbin/edquota, /usr/bin/quotaThis looks wrong... remember the format is something more like: USER_NAMES HOSTS_LIST = (RUN_AS_LIST) COMMAND_LIST So I suspect you want something closer to: manager ALL = (ALL) /usr/sbin/edquota, /usr/bin/quotaHello to you, Sorry, what means about "ALL" ?Edward... simply substitute the parameters vertically... USER_NAMES HOSTS_LIST = (RUN_AS_LIST) COMMAND_LIST manager ALL = (ALL) /usr/sbin/edquota, /usr/bin/quota There's more detail here: http://www.sudo.ws/sudo/man/sudoers.html