Skip to content

Commit

Permalink
Fix permissions for files in /dev/pts (#166)
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 authored Dec 1, 2022
1 parent 7578743 commit 928b293
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 928b293

Please sign in to comment.