[1538] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Smail 3.1.29.1: directory permission problems

daemon@ATHENA.MIT.EDU (Raj Mathur)
Fri Dec 22 04:54:02 1995

Date: Wed, 20 Dec 95 07:35 IST(+0530)
From: raju@gratis.xgroup.ernet.in (Raj Mathur)
To: linux-net@vger.rutgers.edu
Cc: linux-apps@vger.rutgers.edu
Reply-To: raju@xgroup.ernet.in

After compiling and some testing of Smail 3.1.29.1 on Linux I came
across this permissions problem:

If you create a new user on the system, that user cannot receive mail
until you manually create an empty mail file for him/her with the
proper permissions. The issue seems to be that Smail cannot create
files in the mail spool directory (/var/spool/mail on my system) since
it sets it's UID and GID to that of the mail receiver before trying to
open the file (with O_CREAT set).

The mail directory is mode 775, owner root, group mail. Smail is
setuid root, of course.

While not averse to hacking Smail to get the right behaviour, I would
like to know if anyone else has seen (or better, fixed!) this problem.

-- Raju
-- 
 Raj Mathur           The X Group           New Delhi           India
  PGP: Fingerprint: F2 D4 4A 21 27 B0 63 FF  15 97 9D AE 9D 40 BC B8
                 2.6.i Key: finger raju@arbornet.org
                      It is the mind that moves.

home help back first fref pref prev next nref lref last post