Skip to content

Commit 507c3b2

Browse files
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
1 parent e9e8d01 commit 507c3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/syschdemd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ main() {
134134
--setenv=WSLPATH="$(clean_wslpath)" \
135135
--working-directory="$PWD" \
136136
--machine=.host \
137-
"$(which runuser)" -u @username@ -- /bin/sh -c "$exportCmd; source /etc/set-environment; exec $command"
137+
"$(which runuser)" --pty -u @username@ -- /bin/sh -c "$exportCmd; source /etc/set-environment; exec $command"
138138
}
139139

140140
main "$@"

0 commit comments

Comments
 (0)