garywill / linux-router

Set Linux as router in one command. Support Internet sharing, redsocks, Wifi hotspot, IPv6. Can also be used for routing VM/containers 🛰️ (也欢迎关注B站 https://space.bilibili.com/2123686105 )
GNU Lesser General Public License v2.1
1.71k stars 152 forks source link

dnsmasq: unknown user or group nobody #4

Open acmkonings opened 5 years ago

acmkonings commented 5 years ago

I am experiencing above error when using lnxrouter -i eth0

on my Raspberry Pi 2B with raspbx 14 (stretch). The lnxrouter script cancels itself by consequence. Any help would be appreciated. Thanks!

garywill commented 5 years ago

Maybe your system doesn't have nobody user.

Try deleting this https://github.com/garywill/linux-router/blob/5452234c081835715f035ca981225e7b3d5ae4f8/lnxrouter#L1427-L1428

diveyez commented 5 years ago

No No NO. Do not delete it, instead MAKE THE GROUP AND USER. nobody nobody should have been added, but it appears that raspbx likes to do things the retarded way.

jcarius commented 5 years ago

Same on Ubuntu 18.04. The workaround by @garywill

Maybe your system doesn't have nobody user.

Try deleting this

https://github.com/garywill/linux-router/blob/5452234c081835715f035ca981225e7b3d5ae4f8/lnxrouter#L1427-L1428

works.

garywill commented 5 years ago

Same on Ubuntu 18.04

That's strange. Ubuntu doesn't have nobody? Or is it other reason?

@jcarius Please check if your ubuntu have nobody user and group. It's needed for a completed Linux system.

As @diveyez said, nobody nobody should have been added. Workaround is just workaround.

jcarius commented 5 years ago

A quick google search turned out that for Debian flavors one needs to use nobody:nogroup, see this answer

garywill commented 5 years ago

Just added a group judge. You can try if it works.

jcarius commented 5 years ago

Works! I guess the issue can be closed.