Discussion
Loading...

Discussion

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
John Siracusa
John Siracusa
@siracusa@mastodon.social  ·  activity timestamp 2 months ago

Various LLMs tell me that Mac OS X used to use User Private Groups https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/5/html/deployment_guide/s1-users-groups-private-groups

While this does ring a bell for me, I can't find any links to confirm it (nor can the LLMs when I ask for a source link for this info). Does any human out there have a source link? (Information source or source code, I guess.)

  • Copy link
  • Flag this post
  • Block
Glenn Brown
Glenn Brown
@glennbrown@techhub.social  ·  activity timestamp 2 months ago

@siracusa pretty sure the llm is wrong in this case, macOS as long as I have used it defaults to using the group staff for users. Most major Linux distributions have defaulted to private groups matching the username for many years now for local accounts.

  • Copy link
  • Flag this comment
  • Block
John Siracusa
John Siracusa
@siracusa@mastodon.social  ·  activity timestamp 2 months ago

@glennbrown https://mastodon.social/@siracusa/115832858752079529

  • Copy link
  • Flag this comment
  • Block
John Siracusa
John Siracusa
@siracusa@mastodon.social  ·  activity timestamp 2 months ago

Unix for Mac OS X 10.4 Tiger: Visual QuickPro Guide (2nd Edition) by Matisse Enzer confirms it in the "About Users and Groups" chapter:

"In some Unix systems (including Mac OS X 10.4 Tiger) a new group is normally created when you create a new user account. The new group has the same name as the user's user name, and the gid number is the same as the new uid number. The new user will be the only member of this user private group."

  • Copy link
  • Flag this comment
  • Block
John Pell
John Pell
@gaelicWizard@infosec.exchange  ·  activity timestamp 2 months ago

@siracusa well now I’m going to fall down the rabbit hole of how the hell did I miss that?!

  • Copy link
  • Flag this comment
  • Block
Stephen H. Gerstacker
Stephen H. Gerstacker
@stack@mstdn.social  ·  activity timestamp 2 months ago

@siracusa I feel like that’s half true. I think the gid and uid are the next available. If you first create a group and then create a user (which creates a group), the gid would be one higher.

  • Copy link
  • Flag this comment
  • Block
John Siracusa
John Siracusa
@siracusa@mastodon.social  ·  activity timestamp 2 months ago

Also confirmed using Tiger on infinitemac.org:

2 media
Creating a new user account on Mac OS X 10.4 Tiger.
Creating a new user account on Mac OS X 10.4 Tiger.
Creating a new user account on Mac OS X 10.4 Tiger.
Running the "id" command on the new account, showing:

uid=502(john) gid=502(johng groups=502(john)
Running the "id" command on the new account, showing: uid=502(john) gid=502(johng groups=502(john)
Running the "id" command on the new account, showing: uid=502(john) gid=502(johng groups=502(john)
  • Copy link
  • Flag this comment
  • Block
Rapha
Rapha
@virtualrapha@techhub.social  ·  activity timestamp 2 months ago

@siracusa man, these modals were so great...

  • Copy link
  • Flag this comment
  • Block
Glenn Brown
Glenn Brown
@glennbrown@techhub.social  ·  activity timestamp 2 months ago

@siracusa Interesting, I don't know if I have ever created a non-admin user on MacOS does tiger have the same behavior for a admin user? It begs the question why did Apple stop using private groups.

  • Copy link
  • Flag this comment
  • Block
John Siracusa
John Siracusa
@siracusa@mastodon.social  ·  activity timestamp 2 months ago

@glennbrown I don't know what it does for a non-admin user, but I suspect it's the same. (The emulator was really slow, so it was quite a slog to test this. Feel free to try it on you own.)

  • Copy link
  • Flag this comment
  • Block
Nick Radcliffe
Nick Radcliffe
@njr@mathstodon.xyz  ·  activity timestamp 2 months ago

@siracusa I still have a Mac running Tiger…

  • Copy link
  • Flag this comment
  • Block
Huw R
Huw R
@huwr@aus.social  ·  activity timestamp 2 months ago

@siracusa Infinite Mac is such a wonderful thing @mihaip ‘s done such a great job

  • Copy link
  • Flag this comment
  • Block
QuarterSwede
QuarterSwede
@quarterswede@noc.social  ·  activity timestamp 2 months ago

@siracusa I've got 10.2 emulating in UTM and umask does show 022. Just based on my limited understanding that seems to indicated that it did support UPGs.

Screenshot of UTM app emulating OS X 10.2 Jaguar with a visible Terminal app window which shows umask = 022
Screenshot of UTM app emulating OS X 10.2 Jaguar with a visible Terminal app window which shows umask = 022
Screenshot of UTM app emulating OS X 10.2 Jaguar with a visible Terminal app window which shows umask = 022
  • Copy link
  • Flag this comment
  • Block
Federation Bot
Federation Bot
@Federation_Bot  ·  activity timestamp 2 months ago

@siracusa Mac OS X has never had this. I don’t know about developer previews or next step or whatever. Source: I’ve done Unix development and porting on my Mac since 10.0. I don’t have a link because it’s hard to prove a negative.

  • Copy link
  • Flag this comment
  • Block
John Siracusa
John Siracusa
@siracusa@mastodon.social  ·  activity timestamp 2 months ago

@gaelicWizard https://mastodon.social/@siracusa/115832858752079529

  • Copy link
  • Flag this comment
  • Block
Huw R
Huw R
@huwr@aus.social  ·  activity timestamp 2 months ago

@siracusa if you wanted to, one thing you could try is running Mac OS X versions on https://infinitemac.org and taking a look, but it doesn’t have all versions available

  • Copy link
  • Flag this comment
  • Block
TheEjj
TheEjj
@TheEjj@mastodon.social  ·  activity timestamp 2 months ago

@siracusa unfortunately I think the person to ask is John Siracusa.

  • Copy link
  • Flag this comment
  • Block
peter sibley
peter sibley
@petersibley@mastodon.social  ·  activity timestamp 2 months ago

@siracusa i noticed that when i first started using macos x in the early aughts. ( A group name the same as a username ) . I’ve never seen it documented or a reason for it .

  • Copy link
  • Flag this comment
  • Block

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.2-alpha.32 no JS en
Automatic federation enabled
Log in
Instance logo
  • Explore
  • About
  • Members
  • Code of Conduct