V
V
Vladimir Grabko2016-06-12 19:56:40
go
Vladimir Grabko, 2016-06-12 19:56:40

How to create a unix socket with permissions 777?

It is necessary for me that any of users could work with a socket. I create like this

l, err := net.ListenUnix("unix", &net.UnixAddr{pid, "unix"})

But it allows only the current user (who started the daemon) to work with it. A crutch came to mind, namely, after creating the socket, update its rights.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2016-06-12
@VGrabko

smoke umask

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question