[LUG.ro] Problema comando sudo

Gonzalo Romano lugro@lugro.org.ar
Wed, 30 May 2007 09:53:12 -0300


------=_Part_3020_27037419.1180529592811
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

>
> crear un grupo, agregar el usuario. hasta hay llegamos, pero darle los
> permisos a los comando como hago ?
>

tenes que editar el sudoers con visudo, agregar el grupo y ahi pones los
comandos que queres que puedan ejecutar...

# /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.
# Host alias specification

# User alias specification

# Cmnd alias specification

# Defaults

Defaults        !lecture,tty_tickets,!fqdn

# User privilege specification
root    ALL=(ALL) ALL

# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

migrupo  /bin/mount parametros,/bin/umount,etc...

para mas detalles --> man sudoers




-- 
Gonzalo, Romano

------=_Part_3020_27037419.1180529592811
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;" class="gmail_quote">crear un grupo, agregar el usuario. hasta hay llegamos, pero darle los<br>permisos a los comando como hago ?
<br></blockquote><br>tenes que editar el sudoers con visudo, agregar el grupo y ahi pones los comandos que queres que puedan ejecutar...<br><br># /etc/sudoers<br>#<br># This file MUST be edited with the &#39;visudo&#39; command as root.
<br>#<br># See the man page for details on how to write a sudoers file.<br># Host alias specification<br><br># User alias specification<br><br># Cmnd alias specification<br><br># Defaults<br><br>Defaults &nbsp; &nbsp; &nbsp; &nbsp;!lecture,tty_tickets,!fqdn
<br><br># User privilege specification<br>root &nbsp; &nbsp;ALL=(ALL) ALL<br><br># Members of the admin group may gain root privileges<br>%admin ALL=(ALL) ALL<br><br>migrupo&nbsp; /bin/mount parametros,/bin/umount,etc...<br><br>para mas detalles --&gt; man sudoers
<br><br><br><br clear="all"><br>-- <br>Gonzalo, Romano 

------=_Part_3020_27037419.1180529592811--