unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51442: Non-default umask when using guix system leads to wrong file permissions
@ 2021-10-27 15:24 Josselin Poiret via Bug reports for GNU Guix
  2021-10-29 19:10 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Josselin Poiret via Bug reports for GNU Guix @ 2021-10-27 15:24 UTC (permalink / raw)
  To: 51442

Hi,

As reported on IRC by wonko
(https://logs.guix.gnu.org/guix/2021-10-27.log#115445), when running
‘guix system’ under a different umask, some files are created with the
wrong permissions.  This can happen because ‘sudo’ does by default keeps
the umask it is running on (by ORing it with the default one, often
022).

I'm not sure what would be the best way to go about this, I suggest
checking if umask == #o022, and if not, print a warning and set it to
#o022, and only in ‘guix system’.

What do you think?

Best,
Josselin Poiret




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-30 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-27 15:24 bug#51442: Non-default umask when using guix system leads to wrong file permissions Josselin Poiret via Bug reports for GNU Guix
2021-10-29 19:10 ` Ludovic Courtès
2021-10-30 20:48   ` Josselin Poiret via Bug reports for GNU Guix

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).