[arch-general] Different outputs for 'groups' and 'groups user'
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
On Wed, 26 Jun 2019 at 22:01, riveravaldez via arch-general <arch-general@archlinux.org> 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.
On Wed, 26 Jun 2019 18:00:53 -0300, riveravaldez via arch-general wrote:
[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
Log out and then log in again.
On 6/26/19, Ralf Mardorf via arch-general <arch-general@archlinux.org> wrote:
On Wed, 26 Jun 2019 18:00:53 -0300, riveravaldez via arch-general wrote:
[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
Log out and then log in again.
Thanks a lot, everybody. You were right. I'm an ignorant. But also a lazy and impatient ignorant: "If the user is currently logged in, he must log out and in again for the change to take effect.", says a little below... Have a nice day and thanks again!
participants (3)
-
Morgan Adamiec
-
Ralf Mardorf
-
riveravaldez