refresh a user's group permissions

hi

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?

thanks
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Albert Meyburgh [ Di, 20 November 2007 08:49 ] [ ID #1874669 ]

Re: refresh a user's group permissions

.... ciao:

: on "11-19-2007" "Albert Meyburgh" writ: ( sorta )

: log in with USER , root adds USER to 'new', USER not seen with
: `groups`, can't execute anything 'new' owned until they log out
: and back in.
:
: is there a command USER can run to "refresh" group permissions?

how about `su USER` ...

--
.... i'm a man, but i can change,
if i have to , i guess ...
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
terry white [ Di, 20 November 2007 20:04 ] [ ID #1874670 ]

Re: refresh a user's group permissions

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 <glynn [at] gclements.plus.com>
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo [at] vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Glynn Clements [ Di, 20 November 2007 20:49 ] [ ID #1874671 ]
Linux » gmane.linux.admin » refresh a user's group permissions

Vorheriges Thema: Linux 2.6 kernel module compilation without using KBUILD
Nächstes Thema: where is the yum skip list