I decided to create a one-user group, as used to be the default with RedHat. So, I issued root $ groupadd jorge Then: root $ usermod -g jorge jorge (I want this to be my default group.) /etc/passwd reflects the changes: jorge $ cat /etc/passwd|grep jorge jorge:x:1000:409::/home/jorge:/bin/bash (409 is the number of the new group) However: jorge $ cat /etc/group|grep jorge wheel:x:10:root,jorge audio:x:18:jorge video:x:27:root,jorge users:x:100:games,jorge portage:x:250:portage,jorge And: jorge $ groups wheel audio video users portage
jorge $ id uid=1000(jorge) gid=100(users) groups=10(wheel),18(audio),27(video),100(users),250(portage) I edited /etc/group with vigr to add user jorge to group jorge. Still, id and groups give outdated output... Wasn't usermod supposed to deal with this? I env-update'd (as root) and sourced /etc/profile (as jorge), for good measure. (When I login to a vt, the new group is recognized as the default group, so I'm guessing the "id" and "groups" issue has to do with the login or no login shell matter, something I never really understood; but what about the need to edit /etc/group?) -- Jorge Almeida -- gentoo-user@gentoo.org mailing list