1833059 Members
2531 Online
110049 Solutions
New Discussion

Cleaning up /etc/group

 
Luis Toro
Regular Advisor

Cleaning up /etc/group

 
2 REPLIES 2
Jeff Schussele
Honored Contributor

Re: Cleaning up /etc/group

Hi Luis,

Running

grpck

command will verify that there are no problems in the group file. If there are then they have to be manually corrected.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Keith Bevan_1
Trusted Contributor

Re: Cleaning up /etc/group

Luis,

As Jeff suggested try :-

grpck

This will list erroneous items that need correcting.

Whilst doing this you could also do :-

pwck

just to check the integrity of the /etc/passwd file.

Another useful check is to do the following when the server is quiet :-

find . -depth -type f -nouser -o -nogroup -exec ls -l {} \;

This will list files with no user or group details that require amending also.

Hope this helps.

Keith
You are either part of the solution or part of the problem