Why the Unix newgrp command exists (sort of)
utcc.utoronto.ca
Why the Unix newgrp command exists (sort of)
1–10 of 35 posts
Re: Why the Unix newgrp command exists (sort of)
#2Re: Why the Unix newgrp command exists (sort of)
#3The real question is: why not just suck it up and include that "ou"?
Re: Why the Unix newgrp command exists (sort of)
#4Re: Why the Unix newgrp command exists (sort of)
#5Re: Why the Unix newgrp command exists (sort of)
#6Re: Why the Unix newgrp command exists (sort of)
#7I forget the exact reason for the limit of 16, but I think it was an NFS limit.
Re: Why the Unix newgrp command exists (sort of)
#8At a previous job, I had to use newgrp quite frequently. There's a limit on the number of "active" groups you can be in at a time, typically 16. Groups were used for permissions for directories on network storage and our version control system at the time. As far as I'm aware, I was the only person at the company affected because I touched so many different repositories, I was a member of around 20 groups. I had to b…
This is a limitation of NFS, or more specifically AUTH_SYS per RFC 5531 (§A):
* https://tools.ietf.org/html/rfc5531#page-25
A lot (most?) NFS appliances tend to have a setting where you can tell them to ignore the group list that comes in on the RPC call and just do a look-up on the UID themselves: this way they get the full list via LDAP/NIS/AD/whatever and then do permission checks from that.
Re: Why the Unix newgrp command exists (sort of)
#9This was 20ish years ago, so I have no idea what the behavior of now.
Re: Why the Unix newgrp command exists (sort of)
#10The real question is: why not just suck it up and include that "ou"?