Make a socket as a user but make it readable and writable by another
Posted
by
user1598585
on Server Fault
See other posts from Server Fault
or by user1598585
Published on 2012-10-23T15:14:05Z
Indexed on
2012/10/27
11:05 UTC
Read the original article
Hit count: 287
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)
© Server Fault or respective owner