Page 1 of 1

[SOLVED] username and group not found in /etc/group

PostPosted: Oct 12th, '15, 06:33
by elviejito
I have installed Mageia 5, 64-bit. Let's say my initial username as created on install is 'anxius'. KTerminal displays the username upon launch as 'anxius@localhost'. However, when I go to /etc/group there is no user 'anxius' nor is there a group by that name. In /etc/group 'live' displays with a group ID number of 1000, which I usually associate with the owner.
When I look at files by username and group, what displays is username 'anxius' and group 'live'.
I imagine I can change all this by creating a username and group 'anxius' (maybe with a GID of 500), and then doing a chown (chown -R anxius:anxius *) starting at the head of the user directory tree. I'm just worried that 'live' might be there as a group for a reason and I don't want to trash the installation. I've been using Mageia 5 for a few weeks now and just noticed this.
And if I do the above, can I then simply delete the group 'live'?
Any comments or ideas are welcomed.

Re: username and group not found in /etc/group

PostPosted: Oct 12th, '15, 16:22
by ghostdawg
I remember having this issue with the livecd Mga4 and was able to change my main user info from live to username. It also happen once user is changed, when you created a new file, it would give it the Live group ID. But now I can't remember exactly what was the solution but I got it all sorted out. Check on bugzilla and see if a bug report was done about it. I don't remember if I did once I got is fixed.
Check on IRC the #mageia channel, there's were I got my answers.

Re: username and group not found in /etc/group

PostPosted: Oct 12th, '15, 20:30
by elviejito
Thanks.
I hashtagged the group 'live' and added the 'anxius' group with 'anxius' as user and that seems to have resolved the issue. Mageia still boots and I can still get into the 'anxius' login.

Re: username and group not found in /etc/group

PostPosted: Oct 12th, '15, 20:39
by doktor5000
It would help if you could provide the output as your user "anxius" of the command
Code: Select all
id

and also the content of /etc/passwd and /etc/group here.

FWIW, as the group name is only a representation, should be no problem just renaming the group in singleuser mode via groupmod.
As you mention UID and GID of 500, any particular reason why you need that?