On Wed, 20 Mar 2013, Mike C. wrote:

> The way to do this without disrupting the user is to use the "newgrp" command:
> $newgrp - audio

Mike,

   I tried 'source /etc/group' but that did nothing useful. I was completely
unaware of the newgrp command, as I am completely unaware of thousands of
other linux commands. Heck, I would not have known to look for such a
command, either.

> From newgrp man page:
>     "The newgrp command is used to change the current group ID during a
> login session.
>       If the optional - flag is given, the user's environment will be
> reinitialized as though the user had logged in, otherwise the current
> environment, including current working directory, remains unchanged.

   Good to know.

Thanks very much,

Rich


_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to