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 21, 2022
1 parent e9e8d01 commit 507c3b2
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 507c3b2

Please sign in to comment.