linux:sudo
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| linux:sudo [2014/12/24 09:42] – external edit 127.0.0.1 | linux:sudo [2016/09/17 15:22] (current) – removed rlunaro | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Mi configuración de SUDO favorita ====== | ||
| - | |||
| - | |||
| - | Desde que ubuntu usa sudo para ejecutar las acciones administrativas, | ||
| - | |||
| - | Esta es mi configuración de sudo (ver abajo). Tampoco es //rocket science//: es la configuración por defecto de SuSE con unos retoques aquí y alli para que: | ||
| - | |||
| - |   * permita ejecutar todo a ciertos usuarios sin preguntar contraseña excepto:  | ||
| - | * passwd y visudo | ||
| - | |||
| - | ¿Porqué? pues para mantener algo limitada la posibilidad de " | ||
| - | |||
| - | < | ||
| - | # sudoers file. | ||
| - | # | ||
| - | # This file MUST be edited with the ' | ||
| - | # Failure to use ' | ||
| - | # 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 | ||
| - | User_Alias  | ||
| - | |||
| - | # Cmnd alias specification | ||
| - | Cmnd_Alias  | ||
| - | Cmnd_Alias  | ||
| - | Cmnd_Alias  | ||
| - | |||
| - | # Defaults specification | ||
| - | |||
| - | # Prevent environment variables from influencing programs in an | ||
| - | # unexpected or harmful way (CVE-2005-2959, | ||
| - | Defaults always_set_home | ||
| - | Defaults env_reset | ||
| - | |||
| - | # Change env_reset to !env_reset in previous line to keep all environment variables | ||
| - | # Following list will no longer be necessary after this change | ||
| - | |||
| - | 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  | ||
| - | # account 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 LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULEQT_IM_MODULE QT_IM_SWITCHER" | ||
| - | |||
| - | # In the default (unconfigured) configuration, | ||
| - | # This allows use of an ordinary user account for administration of a freshly | ||
| - | # installed system. When configuring sudo, delete the two | ||
| - | # following lines: | ||
| - | Defaults targetpw  | ||
| - | #ALL    ALL=(ALL) ALL   # WARNING! Only use this together with ' | ||
| - | |||
| - | # Runas alias specification | ||
| - | POWER_USERS  | ||
| - | |||
| - | # User privilege specification | ||
| - | root ALL=(ALL) SETENV: ALL | ||
| - | |||
| - | # Uncomment to allow people in group wheel to run all commands | ||
| - | # %wheel  | ||
| - | |||
| - | # Same thing without a password | ||
| - | # %wheel  | ||
| - | |||
| - | # Samples | ||
| - | # %users  | ||
| - | # %users  | ||
| - | |||
| - | </ | ||
| - | |||
linux/sudo.1419414128.txt.gz · Last modified: 2022/12/02 21:02 (external edit)
                
                