Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user-es
Navigation:
Lists: gentoo-user-es: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: Sergio Gómez <s3r@...>
From: Antonio Galicia Ceballos <jcgalici@...>
Subject: Re: mount y halt
Date: Tue Aug 27 16:04:02 2002
On Tue, 27 Aug 2002, Sergio Gómez wrote:

> Lo pongo con suid y le doy permiso de ejecución al grupo y usuario 
> (root:wheel), pero sigue con:

 Intenta con "sudo". De preferencia haz un script y que este sea el que se 
ejecuta con sudo, el script lo ejecutas con un shell restingido y revisas 
los parametros de entrada para evitar problemas de seguridad.

 Yo para el shutdown tengo un script de esta menera:

	# cat /usr/local/sbin/apaga
	#!/bin/rbash

	echo -n 'Desea dar de baja el servidor [s/n]:'
	read r

	case "$r" in
	   S|s)
	        shutdown -t 10 -h now
	        ;;
	   *)
	        echo Cancelando la orden
	        ;;
	esac

 y despues le doy permiso via sudo para ejecutarlo.

-- 
 Saludos,
 Toño.
---
 mailto: jgalicia@...


References:
Re: mount y halt
-- Sergio G�
Navigation:
Lists: gentoo-user-es: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: mount y halt
Next by thread:
Re: mount y halt
Previous by date:
Re: mount y halt
Next by date:
Re: mount y halt


Updated Jun 17, 2009

Summary: Archive of the gentoo-user-es mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.