Kamran Karimi wrote:

>  I have a problem connecting to a UNIX domain socket. The socket is 
> created by a root process, and its permission bits are: srwxr-xr-x. I am 
> using kernel 2.2.12.
> 
>  What can I do so that non-root processes won't get a "connection 
> refused" message when trying to connect to it?

        chmod go+w /path/to/socket

or use fchmod() from within the process which creates it.

>  I also get sporadic "connection refused" messages when a root process 
> tries to connect to a TCP socket, also created by a root process on 
> naother computer. In this case I just restart the client, and it works. I 
> wonder if the two problems could have a common cause.

It seems unlikely.

-- 
Glynn Clements <[EMAIL PROTECTED]>

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to