refresh a user"s group permissions

refresh a user"s group permissions

am 20.11.2007 08:49:15 von Albert Meyburgh

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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: refresh a user"s group permissions

am 20.11.2007 20:04:51 von terry white

.... 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: refresh a user"s group permissions

am 20.11.2007 20:49:22 von Glynn Clements

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
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html