Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8029 - Wrong permissions on /var/mail ?
Summary: Wrong permissions on /var/mail ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-17 08:19 UTC by Ian Smith
Modified: 2003-02-04 19:42 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Smith 2002-09-17 08:19:39 UTC
when reading mail from the command line I get eg:

29 $ mail
Mail version 8.1.1-11 6/6/93.  Type ? for help.
"/var/mail/ian": 1 message 1 new
>N  1 localian@tweek.thepo  Tue Sep 17 14:07  17/591   "hello12"
& 
Message 1:
From localian@tweek.thepond  Tue Sep 17 14:07:39 2002
Delivered-To: ian@sparky.thepond
To: ian@sparky.thepond
Subject: hello12
From: localian@tweek.thepond
Date: Tue, 17 Sep 2002 14:07:04 +0100

hello 12

& q
mail: Cannot create lockfile /var/mail/ian.lock: Error creating temporary lockfile

This is my mail dir.  Have I messed up, or is it Gentoo?

30 $ ll /var/mail
total 20
drwxr-xr-x    2 root     root         4096 09-17 14:11 ./
drwxr-xr-x   18 root     root         4096 09-09 21:50 ../
-rw-------    1 ian      users        9555 09-17 14:11 ian
-rw-r--r--    1 root     root            0 06-29 13:30 .keep


Should the perms be 1777 ?  I don't want to do this without "official clearance"
because it looks very much like a DOS issue . . .
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-18 12:35:18 UTC
/var/mail (check that it is not a symlink to /var/spool/mail), should belong
to the "mail" group, and have rw permissions for group:

# chown root.mail /var/spool/mail
# chmod 775 /var/spool/mail

Comment 2 Ian Smith 2002-09-19 05:06:41 UTC
Thanks - it was root:root 755 on my system for some reason . . .
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-19 13:10:24 UTC
Think it could be a small portage bug which I also just picked up with tetex.
Comment 4 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-25 14:04:27 UTC
This is actually a "portage feature", talk to Daniel (drobbins) or
Nick (carpaski) for more info.

Anyhow, mailbase mailbase-0.00-r5 should fix the perms in pkg_postinst() ...