sudo not working
supadupa at gmail.com
Tue Jan 17 00:21:48 MST 2012
On Tue, Jan 17, 2012 at 1:57 AM, Make Compile <makecompile at yahoo.com> wrote:
> Hi guys,
> any ideas on this? i've been been configuring out sudo account on rhel5.0, unfortunately, i've configured sudo for a user andrew with restricted syntax of /sbin/ifconfig when i test the account the user can still view ip settings of linux box. any ideas on how to restrict specific command on visudo
> sample :
> editing using visudo command.
> andrew localhost = !/sbin/ifconfig
> when i logged in using andrew's credential, and try issuing the command /sbin/ifconfig the user andrew can still view ip settings. any ideas? is this normal? Thanks
chmod o-x /sbin/ifconfig ?
That doesn't prevent someone from uploading ifconfig. Only root should
be able to change settings though.
Oh, and ifconfig is obsolete ;) "ip ftw"
More information about the PLUG