user nobody mixed group id between nobody & nogroup .
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Probably historical/distro differences. Some distros, especially those that use the common "user=group" model (where both user/group names and uid/gid match) will use nobody:nobody for the unprivileged user and its primary group, while those that stick to the more traditional model, like Slackware, will likely use nobody:nogroup. Slackware possibly (just a guess) added the 'nobody' group later for compatibility reasons, but the gid 99 was already taken by nogroup, so it's 98 instead.
My CRUX box just has:
$ id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody)
and there is no 'nogroup'
It's a little less tidy having the uid/gid not match on Slackware, but it doesn't really hurt anything.
I don't remember when the "nobody:nobody" bit started, but it wasn't always this way. I don't allow it here.
Code:
id nobody
uid=99(nobody) gid=99(nogroup) groups=99(nogroup)
Personally, I'm not a fan of dozens of unneeded users/groups in the passwd/group files as that in itself gives a greater attack surface to the system (more users to secure, more users for an attacker to attempt logins as re ssh, ftp, or webservers) but that's an argument for another time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.