Development User Help

permission denied when writing to stdin

I have two processes running by two different users. Both users are in the same group. I want to write to a stdin from one process by writing to /proc/<pid>/fd/0, but the permissions are only set for the other user so I get a permission denied. Can I somehow change the permissions somehow so the other process can write to it?

$ ls -lsa /proc/<pid>/fd/
0 lrwx------ 1 foo group1 64 Feb 14 23:15 0 -> /dev/pts/3

Leave a Reply

Your email address will not be published. Required fields are marked *