Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Invalid user 'mosquitto'. Mac Os X Server #1194

Closed
M1ch3L5 opened this issue Mar 8, 2019 · 2 comments
Closed

Error: Invalid user 'mosquitto'. Mac Os X Server #1194

M1ch3L5 opened this issue Mar 8, 2019 · 2 comments

Comments

@M1ch3L5
Copy link

M1ch3L5 commented Mar 8, 2019

Hello,

I've got the following Problem. I have installed the mosquito via homebrew and i want to run it as root-service as startup of my Computer. If I start it as root, there is the error message: Error: Invalid user 'mosquitto'.
The solution here is to add the user mosquitto. To do so I have to add the user in a terminal, otherwise I have a normal user with login. I don't want this. Can anybody help me. I want to know what privileges, UserIDs, Shells and so on i have to add for the user mosquitto.

Thanks

@ralight
Copy link
Contributor

ralight commented Mar 10, 2019

What is happening here is that mosquitto will drop privileges to the mosquitto user if you run as root, so that it is reducing any security risk. The mosquitto user doesn't need to be anything special, on Linux it is typically a system user with a shell of /usr/sbin/nologin or /bin/false, to prevent actual logins occurring.

@ralight
Copy link
Contributor

ralight commented Apr 25, 2019

I'm going to close this because I think it is answered, if you need more information please reopen and ask.

@ralight ralight closed this as completed Apr 25, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants