Devi S | 1 Feb 2006 05:20
Picon
Favicon

sudo access for ip change

hi all,
  In one of our remote box, I need to let a sudo user to change the IP address, mask, gateway.

  I tried giving access to the following commands: (i) netconfig (ii) /etc/rc.d/init.d/network stop,
start, restart

  But when the sudo user is trying to change the ip address and restart the netconfig she is getting the
following error mesg,

  Shutting down interface eth0: Users cannot control this device.
  [FAILED]
  Shutting down interface eth1: Users cannot control this device.
  [FAILED]
  Shutting down loopback interface: Users cannot control this device.
  [FAILED]
  Disabling IPv4 packet forwarding: error: permission denied on key 'net.ipv4.ip_forward'
  [FAILED]
  rm: cannot remove `/var/lock/subsys/network': Permission denied
  Setting network parameters: [ OK ]
  Bringing up loopback interface: Users cannot control this device.
  [FAILED]
  Bringing up interface eth0: Users cannot control this device.
  [FAILED]
  Bringing up interface eth1: Users cannot control this device.
  [FAILED]
  touch: creating `/var/lock/subsys/network': Permission denied

  To what other commands should I give access for this user to enable her to change the IP address and restart
the network? 

  Please advice. Thank you.

Regards
Devi S. 

Our greatest glory is not in never falling- but in rising every time we fall - Confucius

		
---------------------------------
Do you Yahoo!?
 With a free 1 GB, there's more in store with Yahoo! Mail.
_______________________________________________
To unsubscribe, email ilugc-request@... with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Gmane