hola a todos
por lo que he investigado ahora se que como modificar el archivo sudoers usando visudo pero no lo he podido configurar como yo quiero
cuando usaba mandriva solo necesitaba colocar
juanpa ALL = (ALL) ALL
para poder utilizar cualquier como mando como si fuera root
pero ahora que estoy usando SUSE 11.0 no es suficiente, De hecho copie el contenido de archivo sudoers cuando usaba mandriva y lo pegue en el archivo sudoers de SUSE y no trabaja de igual manera, hay mucho comandos que no puedo usar (desde mi usuario regular)
Código:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
# Failure to use 'visudo' may result in syntax or file permission errors
# that prevent sudo from running.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Prevent environment variables from influencing programs in an unexpected or harmful way (CVE-2005-2959, CVE-2005-4158, CVE-2006-0151)
Defaults always_set_home
Defaults env_reset
Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC
_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE"
# Comment out the preceding line and uncomment the following one if you need to use special input methods. This may allow users to compromise the root accoun
t if they are allowed to run commands without authentication.
#Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE L
C_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly installed system. When configuring sudo, delete the two
# following lines:
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
juanpa ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# 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
#the password timeout, By default, sudo will ask you for your password after 5 minutes of not using it.
#timestamp_timeout = 20
si alguien sabe como modificar este archivo u otro archivo para poder utilizar todos los comando de root usando sudo se lo agradeceria muchisimo
PD: la ultima linea del archivo es para incrementar el tiempo de vigencia de la clave cuando uso sudo, pero tampoco me funciona