Article View: comp.mail.sendmail
Article #88Re: Running a mailer as root??
From: Neil Rickert
Date: Thu, 06 Aug 1992 17:17
Date: Thu, 06 Aug 1992 17:17
26 lines
1866 bytes
1866 bytes
In article <BsKHGA.9zr@world.std.com> sandyb@world.std.com (Sandy Bendremer) writes: >I am running sendmail 4.1 on System 5 Rel 4 (ouch!). I have a special >mailer that must be run as root (both real and effective UID). Although >sendmail is SUID root on our system, when it runs, the real UID is the >user sending the mail. Although the mailer is a shell script (where I >have some control), ultimately a canned executable is run and it must >be root! I know sendmail has a default user option and the 'S' mailer >flag, but none of these seems to do anything. Define a mailer for this. If your system doesn't grok '#! /bin/sh' you can define the mailer to be /bin/sh in the P= (path) option, and include the script name in the A= (argument string). Give your mailer the 'S' flag, so that sendmail will run it without changing uid. Also give the mailer the 'e' flag to mark it expensive. Make sure you have the line 'Oc' in your configuration. The effect should be that the mail will be queued initially, and only delivered to the mailer on queue runs. The real and effective uid should be root during queue runs. Alternatively, you might consider installing perl, and using a perl script in place of a shell script. A perl script can be run with effective uid 0, and change itself to also have real uid of 0. [But don't ask for help - I'm no perl expert.]
Technical Details
Message-ID:
<1992Aug6.171734.25132@mp.cs.niu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!rickertReferences:
<BsKHGA.9zr@world.std.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pmafire!news.dell.com!swrinde!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!mp.cs.niu.edu!rickert From: rickert@mp.cs.niu.edu (Neil Rickert) Newsgroups: comp.mail.sendmail Subject: Re: Running a mailer as root?? Keywords: mailer, sendmail, root Message-ID: <1992Aug6.171734.25132@mp.cs.niu.edu> Date: 6 Aug 92 17:17:34 GMT References: <BsKHGA.9zr@world.std.com> Organization: Northern Illinois University Lines: 26