Skip to content

Commit

Permalink
Fix permissions for files in /dev/pts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
SuperSandro2000 committed Nov 30, 2022
1 parent de5dd82 commit 66cebe5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/syschdemd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"

0 comments on commit 66cebe5

Please sign in to comment.