-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 El 2008-10-20 a las 17:50 -0500, RŌNIN escribió:
Este es el contenido de mi /etc/sudoers:
# /etc/sudoers # # This file MUST be edited with the 'visudo' command as root. # # See the man page for details on how to write a sudoers file. #
Defaults env_reset
# Uncomment to allow members of group sudo to not need a password # %sudo ALL=NOPASSWD: ALL
# Host alias specification
# User alias specification User_Alias OPERADORES=usuario1,usuario2,usuario3 # Cmnd alias specification Cmnd_Alias CAMBIAR=/usr/bin/chown # User privilege specification root ALL=(ALL) ALL
# Members of the admin group may gain root privileges %admin ALL=(ALL) ALL
OPERADORES ALL=(root) CAMBIAR
Como verás, ninguna de las dos líneas que me indican, aparecen para comentarlas ... de cualquier manera, ¿ las agrego y las comento ?.
Vale... pero el problema era que no usabas sudo, sino su. Sin embargo, date cuenta que la linea: OPERADORES ALL=(root) CAMBIAR permite a cualquier operador cambiarse (chown) a cualquier otro usuario, si pueden loguearse. - -- Saludos Carlos E.R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkj9EUQACgkQtTMYHG2NR9XdXACcD7MXVnEs4X/uJCbDYbrSUu7G TQcAnRvRjFfo6BQhqyIOkMqtv28cadJN =G4jW -----END PGP SIGNATURE-----