I think it's an systemd issue, which is already reported on GitHub but not fixed yet:
https://github.com/systemd/systemd/issues/6077 ** Bug watch added: github.com/systemd/systemd/issues #6077 https://github.com/systemd/systemd/issues/6077 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1685754 Title: gnome-terminal unduly forces umask=0022 To manage notifications about this bug go to: https://bugs.launchpad.net/gedit/+bug/1685754/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs