Rich,
Actually, 'newgrp' is not appropriate in your case and can lead to
unintended consequences.  The appropriate fix was to add group 'audio'
to your user, and log out the log in. Make sure you check the fine
points of the docs.

Ed


On 3/20/13, Rich Shepard <[email protected]> wrote:
> 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
>

-- 
Sent from my mobile device

You! What PLANET is this!
        -- McCoy, "The City on the Edge of Forever", stardate 3134.0
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to