LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-19-2023, 04:30 PM   #1
babydr
Member
 
Registered: Aug 2015
Location: Fairbanks , Alaska
Distribution: Slackware-14.2 & 15.0
Posts: 233

Rep: Reputation: 45
user nobody mixed group id between nobody & nogroup .


Describing the issue ...

Code:
# grep nobody /etc/passwd /etc/shadow /etc/group
/etc/passwd:nobody:x:99:99:nobody:/:/bin/false
/etc/shadow:nobody:*:9797:0:::::
/etc/group:nobody:x:98:nobody

# grep ':9[89]:' /etc/passwd /etc/shadow /etc/group
/etc/passwd:nobody:x:99:99:nobody:/:/bin/false
/etc/group:nobody:x:98:nobody
/etc/group:nogroup:x:99:
As it should be ...
Or possibly removing the group 'nobody' or 'npgroup' .

Code:
# grep nobody /etc/passwd /etc/shadow /etc/group
/etc/passwd:nobody:x:99:98:nobody:/:/bin/false
/etc/shadow:nobody:*:9797:0:::::
/etc/group:nobody:x:98:nobody

# grep ':9[89]:' /etc/passwd /etc/shadow /etc/group
/etc/passwd:nobody:x:99:98:nobody:/:/bin/false
/etc/group:nobody:x:98:nobody
/etc/group:nogroup:x:99:
Hth , JimL
 
Old 03-19-2023, 08:21 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,382
Blog Entries: 28

Rep: Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164Reputation: 6164
You might find this thread from Stack Exchange germane.

Me, I would tend not to mess with the defaults, but that's just me.
 
Old 03-23-2023, 08:06 AM   #3
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,918

Rep: Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035Reputation: 5035
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.
 
1 members found this post helpful.
Old 03-23-2023, 01:00 PM   #4
jayjwa
Member
 
Registered: Jul 2003
Location: NY
Distribution: Slackware, Termux
Posts: 798

Rep: Reputation: 256Reputation: 256Reputation: 256
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS4 on Ubuntu nobody/nogroup user mapping speaker0 Linux - Server 1 08-27-2010 04:25 AM
NFS4 & Kerberos: All Files/Directories Owned by nobody:nogroup ... sancho Linux - Networking 1 12-19-2007 12:55 AM
Files getting created with owner as nobody and group as nogroup, how to stop? itsakc Linux - General 2 10-25-2007 06:13 PM
httpd: bad group name { nobody | nogroup } itnix Linux - Software 3 04-21-2005 02:27 AM
basics of nobody and nogroup Datamike Linux - Newbie 2 02-08-2005 05:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration