Bueno, eso hice, pero me pasa lo siguiente:

Archivo /etc/sudores (editado con el visudo)

root    ALL=(ALL) ALL
profesor ALL=/sbin/iptables

En este caso, profesor ser�a el usuario que a mi me interesa que pueda
manejar el netfilter. Ahora:

athlon:/home# su profesor
[EMAIL PROTECTED]:/home$ iptables -t nat -L
bash: iptables: command not found
[EMAIL PROTECTED]:/home$ /sbin/iptables -t nat -L
modprobe: cannot create /var/log/ksymoops/20030519.log Permission denied
modprobe: cannot create /var/log/ksymoops/20030519.log Permission denied
iptables v1.2.7a: can't initialize iptables table `nat': Permission
denied (you must be root)
Perhaps iptables or your kernel needs to be upgraded.

Te dejo mas info:

athlon:/home# grep profesor /etc/passwd
profesor:x:1027:1027:Profesor,,,:/home/profesor:/bin/bash

athlon:/home# uname -ar
Linux athlon.localhost 2.4.18-bf2.4 #1 Son Apr 14 09:53:28 CEST 2002
i686 unknown unknown Debian Woody GNU/Linux

Muchisimas gracias
-----Mensaje original-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre
de Horacio Castellini
Enviado el: Viernes, 09 de Mayo de 2003 15:36
Para: [EMAIL PROTECTED]
Asunto: RE: [LUG.ro] SUDO

 --- Ariel Ferrari <[EMAIL PROTECTED]>
escribi�: > Entonces como recomendas que escriba el
sudoers?
> En tu caso deber�a ser
> 
> usuario ALL=/sbin/iptables
> 
> NOPASSWD uhmm esa opci�n no me gusta... pero si es
> como vos queres
> 
> usuario ALL=/sbin/iptables  NOPASSWD: ALL

Como figura en el �ltimo renglon teniendo en cuenta
que a "usuario" debes remplazarlo por el nombre del
usuario privilegiado.


_______________________________________________
Lugro mailing list
[EMAIL PROTECTED]
http://www.lugro.org.ar/mailman/listinfo/lugro

Responder a