You are not logged in.

#1 2011-04-16 05:46:09

statc
Member
Registered: 2011-04-14
Posts: 29

How to update /etc/group and /etc/gshadow

Hi.

After recent update I got /etc/group.pacnew and /etc/gshadow.pacnew. How should I merge the changes (I saw that "locate" group was added) to /etc/group and /etc/gshadow?

Currently I manually edited /etc/group and ran `sudo grpconv' so that it updates /etc/gshadow, but after that I ran `diff /etc/gshadow{,.pacnew}' and saw that there was "locate:x::" in my file and "locate:::" in .pacnew file. I edited /etc/gshadow manually to remove "x".

Is there an easier way to do the merge (maybe I could use `groupadd'?). Should group ids match in my local gshadow and the file in repos?

I saw similar topics about /etc/group and /etc/gshadow here, but did not find an answer.

Cheers.

Offline

#2 2011-04-16 08:25:32

siriusb
Member
From: Hungary
Registered: 2010-01-01
Posts: 422

Re: How to update /etc/group and /etc/gshadow

You may want to check out meld from [extra].

Offline

#3 2011-04-16 08:37:32

statc
Member
Registered: 2011-04-14
Posts: 29

Re: How to update /etc/group and /etc/gshadow

Actually I have it installed smile Meld helped me to determine that "locate" group was added in .pacnew files. The question is, how do I add this group to my local files. I don't feel comfortable when editing system files like /etc/group and gshadow (I guess they are not intended to be edited manually), so I'd like to know if there is a method better than manual editing (or using Meld to merge changes). Maybe special utilities like `groupadd'?

Offline

#4 2011-04-16 09:24:32

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: How to update /etc/group and /etc/gshadow

There should be no need to update these files. The install script will add groups and users if they are missing. If this does not work for you file a bug report.

Offline

#5 2011-04-16 09:44:22

statc
Member
Registered: 2011-04-14
Posts: 29

Re: How to update /etc/group and /etc/gshadow

When I ran `diff /etc/group{,.pacnew}', I saw that "locale" group is missing from /etc/group and present in /etc/group.pacnew. Does that mean that install script did not create "locate" group automatically? Or could it be that script created the group, but contents of /etc/group did not update immediately?

Offline

#6 2011-04-16 09:49:29

Pierre
Developer
From: Bonn
Registered: 2004-07-05
Posts: 1,967
Website

Re: How to update /etc/group and /etc/gshadow

The locate group was added in 2008. did you use an ancient iso to install your system?

Offline

#7 2011-04-16 09:51:35

statc
Member
Registered: 2011-04-14
Posts: 29

Re: How to update /etc/group and /etc/gshadow

Probably.

Offline

Board footer

Powered by FluxBB