Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] net-mail/mailbase-1.1 and access rights of /var/spool/mail
Date: Tue, 29 Jan 2013 10:20:15
Message-Id: 20130129121916.7e954409@khamul.example.com
In Reply to: [gentoo-user] net-mail/mailbase-1.1 and access rights of /var/spool/mail by Mick
1 On Tue, 29 Jan 2013 06:37:47 +0000
2 Mick <michaelkintzios@×××××.com> wrote:
3
4 > Hi All,
5 >
6 > I got this message when net-mail/mailbase-1.1 was emerged:
7 >
8 > * Messages for package net-mail/mailbase-1.1:
9 >
10 > * Your //var/spool/mail/ directory permissions differ from
11 > * those which mailbase wants to set it to (03775).
12 > * If you did not change them on purpose, consider running:
13 > *
14 > * chown root:mail //var/spool/mail/
15 > * chmod 03775 //var/spool/mail/
16 >
17 >
18 > Running this chmod changed access rights from:
19 >
20 > drwxrwxr-x 2 root mail 4096 Jan 28 19:57 mail
21 >
22 > to a sticky-fied:
23 >
24 > drwxrwsr-t 2 root mail 4096 Jan 28 19:57 mail
25 >
26 >
27 > Any idea why are the sticky bits for group and others required?
28
29 sticky for group so that all sub-dirs and files in them are owned by
30 the mail group. Without it, they would be owned by the user running
31 "mailx" and the mail system can no longer manager them.
32
33 sticky for others is so that you can't delete my mail but you can still
34 create your own mail spool files. Identical logic to /tmp (assuming
35 that you are in the mail group)
36
37 --
38 Alan McKinnon
39 alan.mckinnon@×××××.com

Replies

Subject Author
Re: [gentoo-user] net-mail/mailbase-1.1 and access rights of /var/spool/mail Mick <michaelkintzios@×××××.com>