LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-13-2006, 07:36 PM   #1
Akhran
Member
 
Registered: Aug 2005
Distribution: Debian 'lenny'
Posts: 208

Rep: Reputation: 30
Do you have a 'nobody' group in your system?


cat /etc/passwd |grep nobody
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

passwd seems to indicate that user 'nobody' is in group 'nobody'.

However, when I 'cat /etc/group', there isn't any 'nobody' group.

Is that the way it is suppose to be?

Thanks !
 
Old 03-13-2006, 08:03 PM   #2
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
There should be a nogroup group
 
Old 03-13-2006, 08:33 PM   #3
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by Akhran
cat /etc/passwd |grep nobody
nobody:x:65534:65534:nobody:/nonexistent:/bin/sh

passwd seems to indicate that user 'nobody' is in group 'nobody'.
...
Well no actually, that's not what it indicates at all

Quote:
Originally Posted by man 5 passwd
/etc/passwd contains one line for each user account, with seven fields
delimited by colons (":"). These fields are:

· login name

· optional encrypted password

· numerical user ID

· numerical group ID

· user name or comment field

· user home directory

· optional user command interpreter
As you can see none of the fields say the name of the group that a user is in. The second nobody is in the comment/name field.

What /etc/passwd does indicate is that user nobody is in the group with the group ID 65534, which if you go to /etc/group should be the group with the name nogroup.
 
1 members found this post helpful.
Old 03-13-2006, 09:22 PM   #4
bc8o8
Member
 
Registered: Jun 2003
Location: Boston, MA
Distribution: Debian
Posts: 57

Rep: Reputation: 15
Yes, that is correct and I have the same settings in my /etc/group and /etc/passwd files.

Now I have a question... What is this user/group for? Is it necessary? Since the /etc/shadow file has a * for the password, noone can actually log in as this user (for security I'm sure), so what applications actually use this?

I'm not really asking for any practical purpose, just general curiousity.
 
Old 08-31-2021, 02:51 PM   #5
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 380

Rep: Reputation: Disabled
Quote:
Originally Posted by bc8o8 View Post
Yes, that is correct and I have the same settings in my /etc/group and /etc/passwd files.

Now I have a question... What is this user/group for? Is it necessary? Since the /etc/shadow file has a * for the password, noone can actually log in as this user (for security I'm sure), so what applications actually use this?

I'm not really asking for any practical purpose, just general curiousity.
The nobody user name with user id 65534 was created and reserved for a specific purpose and should be used only for that purpose: as a placeholder for "unmapped" users and user ids in NFS tree exports.

That is, unless user/id mapping is setup for NFS tree exports, all files in the export will appear owned by nobody. The purpose of this is to prevent all users on the importing system from accessing those files (unless they have "other" permissions), as none of them (except root) can be/become nobody.

Therefore it is a very bad idea to use nobody for any other purpose, because its purpose is to be a user name/user id for files that must not be accessible to anybody.
 
  


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
User and Group Admin: How to tell Who is in What group? Akhran Linux - Newbie 1 11-12-2005 11:16 PM
well, there's info written inside /etc/group. accidentally del /etc/group in RedHat9 karmakid Red Hat 1 07-27-2005 10:27 PM
Group Admin, Group Root, or God over Group crickett Linux - General 5 07-12-2004 04:01 PM
changing group of a system user porous Linux - General 4 10-21-2003 10:39 AM
[alert] (22) Invalid argument : setgid : unable to set group id to Group 4294967295 Niraj Linux - Networking 1 12-13-2001 06:58 AM

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

All times are GMT -5. The time now is 02:41 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