WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: user nobody/ nogroup uid number should be 65534?  (Read 14550 times)

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
user nobody/ nogroup uid number should be 65534?
« on: January 12, 2009, 12:01:32 PM »
When I unpack files using tar that contain files that are assigned ownership user nobody / nogroup the unpacked files end up with user 65534. If I then change the uid number for the user nobody / group from 99 to 65534 in the passwd and group files the tar unpacking works correctly. I noticed DSL has the nobody user assigned uid 65534. Does anybody know whats going on here?
big pc man

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: user nobody/ nogroup uid number should be 65534?
« Reply #1 on: January 12, 2009, 12:55:06 PM »
I don't think UID/GID is necessarily supposed to be anything in particular unless you're talking about root.
Using the same IDs definitely makes things more convenient when sharing files between systems, but it's not required and not generally practiced. Compare Slackware IDs to those in Debian, for example, and you'll find many differences.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: user nobody/ nogroup uid number should be 65534?
« Reply #2 on: January 12, 2009, 12:58:52 PM »
Is there any reason they can't be the same as dsl? All I know is that this is the root cause of xampp not installing correctly.
big pc man

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: user nobody/ nogroup uid number should be 65534?
« Reply #3 on: January 12, 2009, 02:14:02 PM »
When I unpack files using tar that contain files that are assigned ownership user nobody / nogroup the unpacked files end up with user 65534.
Actually, that would mean that the archive has the files assigned to id 65534 and not "nobody"

It probably doesn't matter what the number is, like what mikshaw stated.  New users/groups, etc. can be added or changed like what you've done.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: user nobody/ nogroup uid number should be 65534?
« Reply #4 on: January 12, 2009, 02:46:47 PM »
I noticed there is no usermod command in busybox or in the bash.tce. Is there some other command or is editing the passwd and group files the only way to change the uid?
big pc man

Offline roberts

  • Administrator
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: user nobody/ nogroup uid number should be 65534?
« Reply #5 on: January 12, 2009, 03:18:38 PM »
There does not seem to be an official uid for user nobody.
Knoppix and therefore DSL used 65534, others including Fedora use 99.
I have no issue with a change to 65534 for nobody.
10+ Years Contributing to Linux Open Source Projects.

Offline bigpcman

  • Hero Member
  • *****
  • Posts: 719
Re: user nobody/ nogroup uid number should be 65534?
« Reply #6 on: January 12, 2009, 03:46:50 PM »
Thank you Robert.
big pc man

Offline ^thehatsrule^

  • Administrator
  • Hero Member
  • *****
  • Posts: 1726
Re: user nobody/ nogroup uid number should be 65534?
« Reply #7 on: January 13, 2009, 10:09:27 PM »
FWIW, I think the real "fix" would be to have the package itself changed to utilize nobody/nogroup in the archive...

I just recalled that some id guidelines have id's < 100/1000/500 be designated for system services... and everything above it for users.  Perhaps that's why it was 99.
« Last Edit: January 13, 2009, 10:43:46 PM by ^thehatsrule^ »