I was surprised that after upgrading to 6.6 that doas xterm pftop &
fails with: Warning: This program is an suid-root program or is being run by the root user. The full text of the error or warning message cannot be safely formatted in this environment. You may get a more descriptive message by running the program as a non-root user or by removing the suid bit on the executable. xterm: Xt error: Can't open display: %s This is the result of the change in the behavior of doas. Quoting from the upgrade manual doas(1). The environment variable handling in doas(1) has been changed. In particular HOME and PATH are now reset to the target user. I assume that the problem arises because .Xauthority cannot be found Pass HOME and PATH in doas.conf allows the old behavior.

