Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #241866

Re: Mutt can not delete mails

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: Mutt can not delete mails
Date 2021-11-04 16:50 +0100
Message-ID <DfNa1-6oD-9@gated-at.bofh.it> (permalink)
References <DddDH-7sa-5@gated-at.bofh.it> <DddNo-7wr-13@gated-at.bofh.it> <Ddeq5-819-5@gated-at.bofh.it> <Ddgif-Kh-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu 28 Oct 2021 at 17:17:19 (+0100), Tim Woodall wrote:
> On Thu, 28 Oct 2021, Hans wrote:
> > 
> > I answer yes, and it appears "temporary file could not be created".
> > 
> > Pressing again "q" and now answer "no", mutt closes.
> > 
> > Does this help?
> 
> check the ownership/permissions on /tmp
> 
> Should be:
> drwxrwxrwt 12 root root  8192 Oct 28 17:05 .
> 
> I've noticed some issues with upgrading ancient original installs (some
> going all the way back to potato) where /tmp doesn't have the correct
> permission but the system has worked perfectly prior to upgrade.
> 
> I've not tried to investigate - I don't know if the permission/ownership
> was always wrong or has been changed as part of the upgrade.

I'd be very surprised were that the case with stable. It hasn't
happened to me, and I think that you'd immediately see a lot of
complaints if it happened.

But your advice to check is good. We can't assume that the OP hasn't
changed the temporary directory location, as it can be changed outside
of mutt's configuration files:

 3.347. tmpdir

 Type: path
 Default: (empty)

 This variable allows you to specify where Mutt will place its temporary files
 needed for displaying and composing messages. If this variable is not set, the
 environment variable $TMPDIR is used. If $TMPDIR is not set then “/tmp” is
 used.

However, I've opened my local mailbox, deleted messages, and quit,
all without any file manipulations in /tmp/ (my $TMPDIR is unset).

> (One possibility would have been that /tmp was, for some unknown reason,
> owned by me as mode 775 and got changed to root.root mode 775 instead of
> mode 1777. These problem systems are sufficiently old that it's
> perfectly possible that I hacked something I didn't understand all
> those years ago when writing to /tmp failed)

>From what I've read (over decades¹), a frequent cause is to run
something like an installation script in the wrong directory,
like /tmp, often because an unchecked  cd  command failed.
Unpacking an archive can then change the permissions; eg from
man tar:

   Overwrite control
       These options control tar actions when extracting a file over an existing copy on disk.

       [ … ]

       --no-overwrite-dir
              Preserve metadata of existing directories.

       [ … ]

       --overwrite-dir
              Overwrite metadata of existing directories when extracting (default).

Disclaimer: As far as the OP is concerned, I notice that their system
has suffered unaccountable changes in permission settings before, eg:
https://lists.debian.org/debian-user/2014/07/msg00059.html

¹ eg https://lists.debian.org/debian-user/1997/11/msg01557.html

Cheers,
David.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 15:30 +0200
  Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-10-28 15:40 +0200
    Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 16:20 +0200
      Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-10-28 16:30 +0200
      Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-10-28 16:40 +0200
        Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-10-28 16:50 +0200
          Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 17:50 +0200
          Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-10-28 17:50 +0200
            Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-10-28 18:00 +0200
            Re: Mutt can not delete mails Tixy <tixy@yxit.co.uk> - 2021-10-28 18:20 +0200
              Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-04 16:40 +0100
      Re: Mutt can not delete mails Tim Woodall <debianuser@woodall.me.uk> - 2021-10-28 18:20 +0200
        Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-04 16:50 +0100
      Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-11 21:50 +0100
        Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-11-11 22:00 +0100
          Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-12 03:10 +0100
          Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-11-12 19:10 +0100
            Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-11-12 19:50 +0100
              Re: Mutt can not delete mails Hans <hans.ullrich@loop.de> - 2021-11-12 21:00 +0100
                Re: Mutt can not delete mails Greg Wooledge <greg@wooledge.org> - 2021-11-12 21:10 +0100
                Re: Mutt can not delete mails David Wright <deblis@lionunicorn.co.uk> - 2021-11-13 04:30 +0100

csiph-web