home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.sendmail
- Path: sparky!uunet!mcsun!news.funet.fi!polaris!mea
- From: mea@polaris.utu.fi (Matti Aarnio)
- Subject: Re: Funny behavior when mailing to programs
- Message-ID: <1993Jan11.184711.1390@polaris.utu.fi>
- Organization: University of Turku, Computing Centre
- References: <1993Jan5.210513.6819@msc.cornell.edu>
- Date: Mon, 11 Jan 93 18:47:11 GMT
- Lines: 36
-
- There have been comments about permissions used to invoke programs,
- and how they are derived from various forms of aliases.
-
- rob@lynx.msc.cornell.edu.UUCP (Rob Vaughn,302 Thurston Hall,50637,2730428) writes:
- >Our sendmail is set up like this:
- >
- >-rwsr-xr-x 1 root bin 360049 Dec 11 00:12 /usr/lib/sendmail
- > ^ ^^^^
- >Note setuid to 'root'.
- >
- >We have an alias set up as such to save mail message in a file:
- >
- >catmsgs: "|/bin/cat >> /c/src/documents/msgs"
- >
- >which had the following permissions:
- >
- >-rw-rw---- 1 root mscadm 9258 Jan 5 12:57 /c/src/documents/msgs
-
- I wonder, why this complex 'prog' mailer usage ?
- Defining alias as:
- catmsgs: "/c/src/documents/msgs"
- there would not be any problems relating to the peculiarities of 'prog'
- mailer.
-
- If course, if you are looking for something else -- for example
- writing a mail-based server program, you do need more complex approaches,
- like deliver.
-
- >Thanks,
- >Rob
- >--
- >Rob Vaughn, Fugitive Systems Guy
- >Mat. Sci. Center Computing, Cornell University
- >rob@msc.cornell.edu - rob@crnlmsc2.bitnet
-
- /Matti Aarnio <mea@utu.fi>
-