Make a socket as a user but make it readable and writable by another
- by user1598585
I have a software that is run under user A, this software creates a socket in /sockets and the socket should be readable and writable by user B.
I have tried setting the directory to have ownership A:A or A:B but when user A creates the socket, it ends up with uid A and gid A.
Using ACLs has not helped so far, the default mask is preventing the rights to be effective. rw permisions for B will always turn into jusr r. If what I make is not a socket it will work fine.
How can I best accomplish this task? (It is for a web-server where the web-application makes the socket and the web-server software forwards requests to it)