DebianThis forum is for the discussion of Debian 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.
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.
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.
Distribution: SOLARIS/BSD-like, some Debian-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 380
Rep:
Quote:
Originally Posted by bc8o8
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.