Re: refresh a user's group permissions
Glynn Clements <[email protected]>
| Newsgroups | org.kernel.vger.linux-admin |
|---|---|
| Message-ID | <[email protected]> |
Albert Meyburgh wrote: > if i log in with a user, > > then a root user simultaneosly adds that user to a new group > > then that user does not see the group when they type "groups" > > and can't execute anything owned by the new group until they log out > and back in. > > is there a command the user can run to "refresh" their group permissions? The newgrp command will spawn a new shell with the updated groups. There is no way for a non-root process to change its identity information (UID, GID, supplementary GIDs), which is why newgrp is setuid root. The "groups" command reflects the state of the process (which will be inherited from the caller), not the configuration files. -- Glynn Clements <[email protected]>