From 66cebe52db16368eee9893046b6933336fd4d170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Mon, 21 Nov 2022 14:52:46 +0100 Subject: [PATCH] Fix permissions for files in /dev/pts The pts should have $USER:tty permissions, not root:tty. This broke gpg with the following not very helpful error message: gpg: signing failed: Permission denied --- scripts/syschdemd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/syschdemd.sh b/scripts/syschdemd.sh index a28ffccf..71391c75 100644 --- a/scripts/syschdemd.sh +++ b/scripts/syschdemd.sh @@ -134,7 +134,7 @@ main() { --setenv=WSLPATH="$(clean_wslpath)" \ --working-directory="$PWD" \ --machine=.host \ - "$(which runuser)" -u @username@ -- /bin/sh -c "$exportCmd; source /etc/set-environment; exec $command" + "$(which runuser)" --pty -u @username@ -- /bin/sh -c "$exportCmd; source /etc/set-environment; exec $command" } main "$@"