[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mailbox file permissions and timestamps


What are the correct mailbox file mode bitmasks in /var/mail? This is
what I have:

:/var/mail$ ls -al
total 20
drwxrwsr-x  2 root mail 4096 2011-03-30 10:00 .
drwxr-xr-x 16 root root 4096 2010-01-14 20:21 ..
-rw-------  1 root mail  582 2010-04-13 21:31 root
-rw-------  1 u1   mail  528 2011-01-31 09:56 u1
-rw-rw----  1 u2   mail  528 2011-03-30 10:00 u2

Is this correct?? The u1 user account is disabled, while u2 is active.
The 'mail' group seems to have no users.

I was also looking at Access, Modify and Change times of u2 file using
stat utility. It looks that Modify and Change times get updated on new
mail coming in (Postfix) (Access time remains the same), while all 3 get
updated on mail being pop3 (dovecot). If there is no new mail to pop3,
then the timestamps do not change. I thought Access is about read or
write, and Modify is about metadata (name, mode...) modification??! What
is going on?

I am running 5.0.8 (Lenny).

Eisenbits - proven software solutions: http://www.eisenbits.com/
OpenPGP: DFD9 0146 3794 9CF6 17EA  D63F DBF5 8AA8 3B31 FE8A

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: