home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.mail.sendmail
- Path: sparky!uunet!gatech!darwin.sura.net!news.udel.edu!udel!intercon!psinntp!monymsys!sonyd1.Broadcast.Sony.COM!blilly.UUCP!bruce
- From: bruce@blilly.UUCP (Bruce Lilly)
- Subject: Re: Trouble writing to a file
- References: <FULL_GL.92Dec19060740@dolphin.pts.mot.com>
- Organization: Bruce Lilly
- Date: Mon, 21 Dec 92 15:50:57 GMT
- Message-ID: <1992Dec21.155057.1303@blilly.UUCP>
- Reply-To: lilb@sony.compuserve.com (Bruce Lilly)
- Lines: 32
-
- In article <FULL_GL.92Dec19060740@dolphin.pts.mot.com> glen_fullmer@pts.mot.com wrote:
- >I put an alias in /etc/aliases like:
- >
- > rnews: "/usr/spool/news/incoming/xxx"
- >
- >and send mail to rnews and it responds with a error message
- >that it can not write to a file, permission denied. I change the
- >permissions of the file and all directories above it and still get the
- >message. I even change it to "/tmp/xxx" and I also try a .forward to
- >a file with the same results! Any ideas for a fix?
-
- With UIUC/IDA sendmail, you need to make sure that the file permissions:
- a) have the suid bit set
- b) have the sgid bit set
- c) do not have any execute bits set
-
- Try chmod ug+s,a-x /usr/spool/news/incoming/xxx (as root or the file owner).
-
- Note that although the combination of sgid bit set and group execute bit not
- set indicates that mandatory file locking should be used (on System V and
- its derivatives), no file locks are set by the code, so it is possible for
- two or more processes to write to the file at the same time, resulting in
- gibberish.
-
- >The mail server is on a Sparc running 4.1.3 without NIS.
-
- The above might or might not work on your machine, depending on the version
- of sendmail which it runs.
-
- --
- Bruce Lilly blilly!bruce@Broadcast.Sony.COM
- ...uunet!sonyusa!sonyd1!blilly!bruce
-