Hola, tengo instalado un SLES 10 con varios usuarios, el caso es que en el .profile de cada uno de ellos hay puesto una secuencia de comandos que arrancan unos programas que deberian ejecutarse como root. ( esto es un ejemplo, ejecuto ls y el echo desde un terminal con telnet.) # Sample .profile for SuSE Linux # rewritten by Christian Steinruecken <cstein@suse.de> # # This file is read each time a login shell is started. # All other interactive shells will only read .bashrc; this is particularly # important for language settings, see below. test -z "$PROFILEREAD" && . /etc/profile # Most applications support several languages for their output. # To make use of this feature, simply uncomment one of the lines below or # add your own one (see /usr/share/locale/locale.alias for more codes) # #export LANG=de_DE.UTF-8 # uncomment this line for German output #export LANG=fr_FR.UTF-8 # uncomment this line for French output #export LANG=es_ES.UTF-8 # uncomment this line for Spanish output # Some people don't like fortune. If you uncomment the following lines, # you will have a fortune each time you log in ;-) #if [ -x /usr/bin/fortune ] ; then # echo # /usr/bin/fortune # echo #fi setserial /dev/ttyS1 port 0x20b0 uart 16550a irq 5 Baud_base 115200 ls echo $PATH exit Haciendo caso a la lista que no se pueden poner privilegios de root a los usuarios, he leido el manual de sudo, tiene un fichero de configuracion /etc/sudoers donde podemos poner los usuarios que ejecutan esos comandos como root: # 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 # User alias specification Runas_Alias COSDAM = finan, gestion, pruebas # 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 # 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: Defaults targetpw # ask for the password of the target user i.e. root ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'! # Runas alias specification # User privilege specification root ALL=(ALL) ALL # Uncomment to allow people in group wheel to run all commands # %wheel ALL=(ALL) ALL # Same thing without a password %COSDAM ALL=(ALL) NOPASSWD: ALL # Samples # %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom # %users localhost=/sbin/shutdown -h now esto creo que hace es que los usuarios del grupo COSDAM puedan ejecutar todos los comandos como root, pero ¿como pongo en el .profile de cada usuario el comando sudo? ¿con que opciones? Gracias. --------------------------------------------------------------------- Para dar de baja la suscripción, mande un mensaje a: opensuse-es+unsubscribe@opensuse.org Para obtener el resto de direcciones-comando, mande un mensaje a: opensuse-es+help@opensuse.org