Subject: Re: "cannot lock mailbox"...
To: matthew green <mrg@eterna.com.au>
From: Perry E. Metzger <perry@piermont.com>
List: current-users
Date: 08/22/1997 11:29:07
matthew green writes:
> i've had several whacky ideas on this in the past, but the one i like the
> most that says as close to the '/var/mail' concept, without going too over
> board in bogosity, is something like this:
> 
> 	/var/mail/mrg/Mailbox
> 	/var/mail/perry/Mailbox
> 	/var/....
> 
> where as part of account set up (eg, $HOME creation), /var/mail/$USER is
> also to be created, chowned to the user, etc.  /var/mail can (and should)
> be mode 755, root.wheel, so that no one can spoof mail boxes.

I have a slightly better idea...

/var/mail/username/[individual_mailfiles]

This can be done in a way that requires no file locking (big plus) and
can finally eliminate the goddamn From kludge (big plus).

For the moment, simply doing /var/mail/user/Mailbox would be a win,
though, and would require zero software changes. This could be done,
btw, with a suid program that is automagically called if the directory
doesn't exist -- since it would be a very simple program, it could be
reasonably secure.

Perry