From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078701111791.tru64-unix-managers.marc@archive.invalid> From: Daniel.Clar () supelec ! fr (Daniel Clar) Date: Tue, 31 Mar 1998 06:33:04 +0000 To: tru64-unix-managers Subject: SUMMARY: Who is doing action in NSR notifications ? X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078701111791 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