I am running a client / server application on Red Hat Enterprise using ZMQ for messaging. The IPC socket used to bind a client to a server is implemented using a Unix domain socket.
If user A starts the server process, it seems that only clients launched by user A can connect to and communicate with this socket. Our project requires that customers can work with different users, so this is an important point.
The socket is located in / tmp / ipc _assoc with default permissions of 755. chmod 777 does not fix the problem. chown userB allows user B to access the socket, but user A then loses access. Even root cannot access the socket. There is no ACL or SeLinux on the machine.
Is this typical behavior for Unix domain sockets? Has anyone figured out how to get around this?
linux sockets
Dana leonard
source share