TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Why do Unix groups still require re-logging in to register changes?

3 pointsby glyphobetabout 16 years ago
Why does a user have to log out and back in again before they appear in (or dissapear from) a Unix/POSIX group they've just been added to (or removed from)? How hard would it be to calculate the the list of groups the user is in on the fly, or have a command that refreshed the user's list of groups?<p>I can understand why it didn't work this way when Unix/POSIX groups were designed and first implemented back in The Ancient Times -- when CPU, memory and disk were at a premium. But times have changed.... Is there a technical/architectural/security reason why this hasn't changed?

2 comments

cpercivaabout 16 years ago
Because each process belongs to a set of groups (set via setgroups(2)), and that set of groups isn't necessarily the same as the set of groups to which the process' <i>user</i> belongs.
davidwabout 16 years ago
Because no one has hacked together a good solution for it, presumably.