#1000584 inkscape: confused by set-group-ID on directory

Package:
inkscape
Source:
inkscape
Description:
vector-based drawing program
Submitter:
Francesco Potortì
Date:
2021-12-11 16:48:02 UTC
Severity:
normal
Tags:
#1000584#5
Date:
2021-11-25 12:12:57 UTC
From:
To:
I have a directory X with permissions drwxrwsr-x and umask 0002

I start Inkscape from a dirrente directory, read a pdf file from X and
export a bitmap conversion to directory X.

The file permissions are -rw------- (they should be -rw-rw-r--)

I remove the file and export again.  This time the file permissions are
-rw-r--r-- (they should be -rw-rw-r--).

#1000584#8
Date:
2021-12-11 16:45:15 UTC
From:
To:
Hi,

I believe you might be confused here:

That's the standard file permissions for temporary files.


However, there is a point: when you say "you have directory X with […]
umask 0002".  umask is not a property of a directory, but of a currently
running process; a property that gets inherited.

Which means that for that umask to take effect, you'd likely need to
open a terminal, run `umask 0002 && inkscape` (assuming you didn't
change umask system-wide).
If I do that, then the exported file has permissions -rw-rw-r-- all the
time I export it.