Difference between revisions of "2022/11/09/Nix issue/sidetrack"

From Mew
Jump to navigation Jump to search
m
 
Line 11: Line 11:
  
 
Even if I start a new <code>bash</code> session, however, "groups" still doesn't list it. I'd suspect that it's hidden somehow, if it weren't for the fact that <code>ls</code> is acting like my membership is invalid. I'm beginning to suspect some kind of Good Old <s>Boy</s> Code Network in operation here...
 
Even if I start a new <code>bash</code> session, however, "groups" still doesn't list it. I'd suspect that it's hidden somehow, if it weren't for the fact that <code>ls</code> is acting like my membership is invalid. I'm beginning to suspect some kind of Good Old <s>Boy</s> 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

Latest revision as of 21:44, 9 November 2022

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