Sous mandrake/redhat tu devrait utilise la fonction ( dans
/etc/rc.d/init.d/functions )
      deamon --user=titi mrtg

Pour avoir le 'beau' [OK] vert lors du demarage.

Dans les autres distrib il devrait y a voir la meme chose ? non ?

Dominique




|---------+----------------------------->
|         |           "Didier MISSON"   |
|         |           <[EMAIL PROTECTED]|
|         |           fina.com>         |
|         |           Sent by:          |
|         |           [EMAIL PROTECTED]|
|         |           unixtech.be       |
|         |                             |
|         |                             |
|         |           24/02/2003 14:55  |
|         |           Please respond to |
|         |           linux             |
|         |                             |
|---------+----------------------------->
  
>-------------------------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                                          |
  |       To:       [EMAIL PROTECTED]                                                  
                                    |
  |       cc:       (bcc: Dominique Gallot/BRU/MASTERCARD)                             
                                          |
  |       Subject:  [linux] Re: scrip init : user ?                                    
                                          |
  
>-------------------------------------------------------------------------------------------------------------------------------|




dans le script S80mrtg tu fait un sudo !

Dominique


Didier> ah.. que un simple sudo...
Je pensais qu'un m�chanisme �tait pr�vu.
Mais ok, no problem.
Je vais lire les man pages de sudo

Merci

--
Didier




SuSE 8.1.

Je fais tourner MRTG.
Anciennement, je le lan�ais manuellement, sous un user mrtgadmin.
J'ai enfin automatis� le d�marrage, via un lien vers mon scrip de
d�marrage, depuis /etc/init.d/rc5.d/S80mrtg

Ok, �a marche!
Lors du reboot, MRTG d�marre.

Mais voil�, MRTG tourne sous le user ROOT.
Comme dire � un script dans /etc/init.d de tourner sous un autre userid ?

Didier


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech






**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: efnet.unixtech.be:6667 - #unixtech

Répondre à