Why can't I add user to group?

Derek Broughton derek at pointerstop.ca
Thu Apr 30 18:36:06 UTC 2009


Derek Broughton wrote:

> Dotan Cohen wrote:
> 
>> jaunty2 at laptop:~$ whoami
>> jaunty2
>> jaunty2 at laptop:~$ sudo usermod -a -G vboxusers jaunty2
>> jaunty2 at laptop:~$ groups
>> jaunty2 adm dialout cdrom plugdev lpadmin admin sambashare
>> jaunty2 at laptop:~$
> 
> sudo -i jaunty2
> groups

Ugh.  "sudo -i -u jaunty2" - but you knew that... :-)
 
>> 
>> Why is that? I'm on Kubuntu 9.04.
>> 
> 
> I'm pretty sure you have to effectively login to get the new groups.







More information about the ubuntu-users mailing list