Mailinglist Archive: opensuse-es (1520 mails)

< Previous Next >
sudoers, configuracion de sudo que no funciona
  • From: david <nirgal70@xxxxxxxx>
  • Date: 14 Nov 2003 01:21:29 +0100
  • Message-id: <1068766672.1673.2.camel@xxxxxxxxxxxxxx>
holas a tod@s, ayer me pude a trastear con sudo y edite sudoers
dejandolo de la siguiente manera sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers
file.
#
# Host alias specification
Host_Alias USERS=p18linux
# User alias specification
User_Alias MOUNTERS=david
# Cmnd alias specification
Cmnd_Alias MOUNT=/bin/mount /bin/umount
# Defaults specification

# User privilege specification
root ALL=(ALL) ALL
david USERS=MOUNT
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
%users USERS=MOUNT
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL

# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now

la idea es que el usuario david puede usar el comando mount y umount,
alguien sabe que es lo que falla ? porque a mi no me funciona,.muchas
gracias a tod@s y saludos


< Previous Next >