Re: Wheezy: adding myself to the sudo group using usermod
On Thu, Apr 04, 2019 at 06:42:19PM +0100, Thomas Pircher wrote:
> Brian wrote:
> > On Thu 04 Apr 2019 at 12:54:52 -0400, rhkramer@gmail.com wrote:
> >
> > > (On Wheezy) I've been trying to add myself to the sudo group with the usermod
> > > command.
> >
> > vigr is your friend.
>
> I don't think this will fix OP's problem.
>
> rhkramer, you don't need to reboot your machine, but you need to
> re-login in order to start a session with your new set of groups.
>
> If you do 'su $USER' on the terminal then this should start a session
> with the new groups _in this session only_.
>
'newgrp' is a bit nicer than 'su $USER', being that the latter can
change your environment (depending on system settings).
> If you need the change globally (e.g. for applications you start from
> the GUI) then you will have to logout and login again.
>
There is no way around this for a global update.
Regards,
-Roberto
--
Roberto C. Sánchez
Reply to: