WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: /etc/passwd entry for "nobody" user  (Read 3876 times)

Offline ixbrian

  • Retired Admins
  • Sr. Member
  • *****
  • Posts: 436
/etc/passwd entry for "nobody" user
« on: August 02, 2010, 11:13:55 PM »
In Tiny Core 3.0, the /etc/passwd entry for "nobody" is:

nobody:x:65534:65534:nobody:/bin/false

The home directory field is missing, so the system is using "/bin/false" as the home directory instead of the shell.  This has the effect of allowing the nobody user to login with a shell if a password was set for nobody, instead of using "/bin/false" as the shell which should immediately log the user out.  

To fix this, the  /etc/passwd entry could be set to something like this that specifies a home directory:

nobody:x:65534:65534:nobody:/nonexistent:/bin/false

Since this correction will change the behavior of nobody, I think there is a small chance it could cause regressions with extensions that use the nobody user. 

Thanks,
Brian
« Last Edit: August 03, 2010, 12:19:16 AM by ixbrian »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: /etc/passwd entry for "nobody" user
« Reply #1 on: August 07, 2010, 01:36:56 PM »
Done. Thanks.
10+ Years Contributing to Linux Open Source Projects.