2022/11/09/Nix issue/sidetrack

From Mew
Jump to navigation Jump to search

Figured out a thing: When I added myself to nix-users earlier, it didn't actually work.

woozle@SamEagle:~/nextcloud/statler/woozle/projects/web/Mastodon/TootCat/nixos-config$ groups
woozle adm cdrom sudo dip plugdev lpadmin sambashare
woozle@SamEagle:~/nextcloud/statler/woozle/projects/web/Mastodon/TootCat/nixos-config$ sudo usermod -a -G nix-users woozle
woozle@SamEagle:~/nextcloud/statler/woozle/projects/web/Mastodon/TootCat/nixos-config$ groups
woozle adm cdrom sudo dip plugdev lpadmin sambashare

For extra bafflement, the Control Panel user-management applet clearly shows that yes, I am in fact a member in good standing of the illustrious nix-users group:

2022-11-09 16-22-40.screen.nix-users group.png

Even if I start a new bash session, however, "groups" still doesn't list it. I'd suspect that it's hidden somehow, if it weren't for the fact that ls is acting like my membership is invalid. I'm beginning to suspect some kind of Good Old Boy Code Network in operation here...

Solution

ghost!admin pointed out that opening a new terminal session does not log in again, and the new group membership won't take effect until the next login. This command does:

sudo login woozle