Hi,

Quoting Benjamin Drung (2020-01-22 13:23:36)
> Am Mittwoch, den 22.01.2020, 13:13 +0100 schrieb Johannes Schauer:
> > Quoting Benjamin Drung (2020-01-22 12:58:38)
> > > when I set TMPDIR to a directory that has mode 0755, mmdebstrap
> > > will fail:
> > > 
> > > ```
> > > $ ls -ld .
> > > drwxr-xr-x 3 bdrung bdrung 80 Jan 22 12:43 .
> > > $ TMPDIR=$(pwd) mmdebstrap buster buster.tar.xz
> > > I: automatically chosen mode: unshare
> > 
> > you are using the unshare mode. This means that your temporary
> > directory needs
> > to be accessible by the unshared user. Evidently it is not. I don't
> > think there
> > is anything that mmdebstrap can do about it.
> 
> mmdebstrap could create a temporary directory, change the mode to 1777 and
> let unshare use that, couldn't it?

but that's not where the error comes from. From the output you posted in your
report it seems like mmdebstrap is not able to create the temporary directory
at all. Obviously it cannot change permissions of something that doesn't exist.
I don't think mmdebstrap should attempt touching the permissions of the $TMPDIR
directory.

Also: the sticky bit probably has no influence on whether or not you get the
"permission denied" error, right?

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to