:: [DNG] SOLVED: mail mysteriously rea…
Top Page
Delete this message
Reply to this message
Author: Hendrik Boom
Date:  
To: dng
Subject: [DNG] SOLVED: mail mysteriously read-only
On Sat, May 20, 2023 at 05:39:21PM +0100, Bill Purvis wrote:
> On 20/05/2023 17:29, Hendrik Boom wrote:
> > On Sat, May 20, 2023 at 08:14:45AM -0700,capercally.bleery670@??? wrote:
> > > On Sat, May 20, 2023 at 08:12:22AM -0700,capercally.bleery670@??? wrote:
> > >
> > > Following up to myself, sorry :P
> > >
> > > > > > -rw------- 1 hendrik mail 102495117 May 20 08:06 hendrik
> > > > > > and for the old var/mail, it tells me
> > > > > > -rw------- 1 hendrik mail 102369929 May 20 07:34 /oldvarmail/hendrik
> > > It's also worth doing a ls -a, because lock file names may start with "."
> > >
> > hendrik@april:~$ ls /var/mail -ald
> > drwxr-xr-x 3 root root 4096 May 20 12:20 /var/mail
> > You have mail in /var/mail/hendrik
> > hendrik@april:~$ ls /var/mail -al
> > total 100900
> > drwxr-xr-x  3 root     root      4096 May 20 12:20 .
> > drwxr-xr-x 15 root     root      4096 Jun  5  2014 ..
> > -rw-------  1 geoffrey mail       873 Jan 21  2011 geoffrey
> > ----------  1 root     mail         0 Jun 21  2006 hal
> > -rw-------  1 hendrik  mail 103257365 May 20 12:20 hendrik
> > -rw-------  1 list     mail     39887 May  1 05:00 list
> > drwx------  2 root     root      4096 Sep 21  2012 lost+found
> > -rw-------  1 nobody   mail       501 Jul  2  2015 nobody
> > hendrik@april:~$ mount | grep /var/mail
> > /dev/mapper/VG--3T-var--mail on /var/mail type ext4 (rw,relatime)
> > hendrik@april:~$

> >
> >
> > > --
> > > Ian
> > > _______________________________________________
> > > Dng mailing list
> > > Dng@???
> > > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> My guess is you need group mail write access on the mount point.


Yes, indeed.

comparing it with the old directory on the old partition
reveals this difference. Also the 's' bit on the directory.
I had not seen these subtle discrepancies before. I am a bit
surprised at needing permissions on the directory whe I already
have read/write permissions on the file, which I own...

Correction done by doing

    chmod g+ws /var/mail


and now it works properly.

Thanks to everyone that helped me track down the problem.

-- hendrik