tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Daniel.Clar () supelec ! fr (Daniel Clar)
To: tru64-unix-managers
Subject: SUMMARY: Who is doing action in NSR notifications ?
Date: Tue, 31 Mar 1998 06:33:04 +0000	[thread overview]
Message-ID: <96078701111791.tru64-unix-managers.marc@archive.invalid> (raw)

The original posting was :

>I'm using Networker 4.4 on DU 4.0b and I want to modify some notifications 
>actions and in particular to do some actions needing some privielges (so as 
>root).
>
>The first question could be :
>
>who is sending mail in a command as "/usr/bin/mailx -s "server's tape mount 
>request 1" root ?
>
>It seems to me that it's "nobody".
>
>How to manage so that the user sending mail could be root ? For me it won't 
>bring some security hole as the corresponding action could be done only 
>within Networker events notfiication.

I've found the solution by myself but the guess was almost good.

When you send an e-mail, the user within sendmail is nobody for 
comprehensive security reasons. So when a script is executed, it's done by 
nobody who has no privilege at all, even when root is sending the e-mail.

So to resolve my NSR problem, the solution is to replace

"/usr/bin/mailx -s "server's tape mount request 1" by 
"/usr/opt/..../script" where script is owned by root and executable by root 
only. In the script , it's possible to add the mailx command before doing 
something else.

Daniel


o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o
|   Daniel Clar          	    	   e-mail : Daniel.Clar@supelec.fr  |
|   Computer Operations Manager			  : dc@supelec.fr	    |
|   Service Informatique Supelec                    and                     |
|   Plateau de Moulon                            DECUSF::CLAR_D or          |
|   91192 Gif sur Yvette Cedex - France           Daniel.Clar@decus.fr      |
|   Tel : (33 1) 69 85 14 87        	   Fax : (33 1) 69 85 12 34         |
o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o

                 reply	other threads:[~1998-03-31  6:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox