*BSD News Article 64426


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!newshost.telstra.net!asstdc.scgt.oz.au!metro!metro!munnari.OZ.AU!spool.mu.edu!news.sol.net!uniserve!van-bc!news1.vancouver.istar.net!news.vancouver.istar.net!istar.net!newsjunkie.ans.net!newsfeeds.ans.net!howland.reston.ans.net!newsfeed.internetmci.com!info.ucla.edu!news.ucdavis.edu!Nuxi.com!not-for-mail
From: obrien@Nuxi.com (David E. O'Brien)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Compiling Elm 2.4 for 2.1R
Date: 28 Mar 1996 02:39:15 GMT
Organization: University of California, Davis
Lines: 45
Message-ID: <4jcu4j$2rg@mark.ucdavis.edu>
References: <4iv3rb$ort@ulowell.uml.edu> <1996Mar27.215636.22528@combdyn.com>
NNTP-Posting-Host: nuxi.cs.ucdavis.edu
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]

Lawrence *The Dreamer* Chen (lawrence@combdyn.com) wrote:
: oneill@jupiter.cs.uml.edu (Brian 'Doc' O'Neill) writes:
: 
: >I've got Elm 2.4 with the patches from ports-2.1. I can build it, but
: >whenever I run it non-root, all I get is "Waiting" message, indicating that
: >the mail file is locked, when it isn't. I tried both flock and fcntl
: >locking, and both had the same effect...any suggestions?
: 
: >Elm is installed setgid bin...
: 
: I'm pretty sure elm should be installed setgid mail.  At least that's how
: I have it installed on my Interactive UNIX box.  Haven't tried building it

The usual followup from Ollivier ROBERT on this topic would be:

Under any version of FreeBSD, one need to have :

- /var/mail 755 root.wheel
- use only fcntl as locking scheme
- configure elm *not* to be setgid mail.

It runs fine like that.                           

The  best way to use Elm  is with fcntl. With  fcntl you don't have to have
/var/mail 1777 nor using Elm as setgid mail.

203 [14:11] roberto@keltia:~> ll -d /var/mail
drwxrwxr-x  2 bin  mail  512 Jul  2 15:35 /var/mail/

205 [14:12] roberto@keltia:~> ll `which elm`
-rwxr-xr-x  1 root  bin  354385 Jul 17 23:50 /usr/local/bin/elm*

Elm Version and Identification Information:

        Elm 2.4ME+ PL3 (25), of January, 1996
        (C) Copyright 1988-1992 USENET Community Trust
        Based on Elm 2.0, (C) Copyright 1986,1987 Dave Taylor
        ----------------------------------
        Configured Tue Jan 23 22:25:11 MET 1996
        ----------------------------------
        Following mail spool locking protocols will be used:
        USE_FCNTL_LOCKING

--
-- David    (obrien@cs.ucdavis.edu)