Re: Different outputs for 'groups' and 'groups user'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Wed, 26 Jun 2019 at 22:01, riveravaldez via arch-general
<arch-general@xxxxxxxxxxxxx> wrote:
>
> Hi, not sure if this is the right place to ask this, let me know if it's not.
>
> Maybe this is normal, but couldn't clarify it by reading the Arch Wiki [1]:
>
> [user@arch ~]$ whoami
> user
> [user@arch ~]$ groups
> sys lp wheel ftp uucp log rfkill http games audio users user
> [user@arch ~]$ groups user
> sys lp wheel ftp uucp log rfkill http games audio users realtime user
>
> Why different outputs?
> Is it normal and with no issues?
> Should I do something?
>
> Thanks a lot!
>
> [1] https://wiki.archlinux.org/index.php/Users_and_groups#Group_management

Did you just add yourself to that group? Groups are usually applied
when you log in,
so you need to log out and back in. My assumption is that `groups user` goes and
looks up the groups in passwd for that user. While `groups` uses
what's applied to
your currently login session.



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux