*BSD News Article 69556


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.EDU.AU!munnari.OZ.AU!spool.mu.edu!howland.reston.ans.net!swrinde!elroy.jpl.nasa.gov!news.msfc.nasa.gov!newsfeed.internetmci.com!news.mathworks.com!news2.mathworks.com!newscaster-1.mcast.net!cs.tu-berlin.de!zib-berlin.de!irz401!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: mail problem
Date: 27 May 1996 17:50:37 GMT
Organization: Private BSD site, Dresden
Lines: 24
Message-ID: <4ocq1d$bko@uriah.heep.sax.de>
References: <31A59677.1A48@terem.ru>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E

bob <bob@terem.ru> wrote:

> bob:[14:49] /var/mail/ echo subj | mail -s Test bob
> 
> bob:[14:49] /var/mail/ : Permission denied

/usr/sbin/sendmail and /usr/libexec/mail.local must be setuid root,
i.e.:

chmod 04555 /usr/sbin/sendmail /usr/libexec/mail.local
chown root  /usr/sbin/sendmail /usr/libexec/mail.local

Since you don't know what you have done, there's a large risk that you
have damaged further file permissions.  If you've got the source code
around, it's perhaps best to recompile and reinstall the entire
system, so all permissions of standard files and directories will be
corrected.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)