Hacker News new | ask | show | jobs
by uidnobody 782 days ago
https://x.com/hackerfantastic/status/1786485377617846348

gives a 3rd example to explain the problem and suggests a fix. The pty should be chown() to root after a root program is attached.