I'm using user "lightning" to start the daemon, but would like to have user "bitcoin" to make the lightning-cli calls. How do I share the lightning-rpc file to do so?
Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.Sign up to join this community
I am not sure if I get your question. So just some general remarks. Lightningd opens as socket and this owns the rpc file. That is why a 2nd lightningd needs a separate data dir and rpc file. However many clients can connect to the socket. For example lightning-cli or other programs you write....
If it is just about use rights you could probably just start lightningd with the Bitcoin user. Or you could assign the rpc file to be member of the same group as the Bitcoin user