Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] I have a mosquitto acl setting problem, really need help!

Lol it's me

Ben Hardill via mosquitto-dev <mosquitto-dev@xxxxxxxxxxx> 於 2023年10月5日 週四 16:16 寫道:
Asked and answered on Stack Overflow

https://stackoverflow.com/questions/77233861/how-to-set-general-rule-for-mosquitto-users-in-acl-i-tried-several-ways-but-nev

On 05/10/2023 05:01, 陳昀馨 via mosquitto-dev wrote:
> Hi, as topic said, I wanna know how to set general rules for all users?
> I hope to let all user can subscriber the topic start with*/c2d/xxx*and
> publish the topic start with*/d2c/xxx*
> and this is my first version of acl,
>
>     # Give admin full access to everything
>     user admin
>     topic readwrite #
>     # Allow all users to read and write to specific topics
>     topic readwrite all users /c2d/#
>     topic readwrite all users /d2c/#
>
>
> users except admin can't receive the topic start with*/c2d*, like:
> */c2d/config/get/0123456789A*
> after I read the document, I edit my acl file like this:
>
>     # Give admin full access to everything
>     user admin
>     topic readwrite #
>     # Allow all users to read and write to specific topics
>     #topic readwrite all users /c2d/#
>     #topic readwrite all users /d2c/#
>     pattern readwrite /c2d/#
>     pattern readwrite /d2c/#
>
>
> but after I reload the config (*docker kill --signal=HUP
> mqtt-container*) I still can't receive topic start with*/c2d/xxx*by
> other user, please help QQ
>
> _______________________________________________
> mosquitto-dev mailing list
> mosquitto-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

--
https://www.hardill.me.uk/wordpress
https://github.com/hardillb
https://about.me/hardillb
https://flickr.com/photos/hardillb/
https://keybase.io/hardillb
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top