Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Running grpck to check the groups, I see these errors:

 'twinky' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
 'dipsy' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
 'laalaa' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
 'po' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
 'noonoo' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
 'dipsy' is a member of the 'foo' group in /etc/group but not in /etc/gshadow
 ...

...and on for quite a few. I'm not sure how this happened, and I'd like to get it cleaned up. I know I could manually edit the /etc/gshadow, but I'd rather let the OS do it, to prevent typos and manual labor.

Is there anything that can automatically reconcile a group into gshadow? Maybe something like (making this up):

# grpfix foo

I've tried man on various group-related commands and googled around, but so far I haven't been able to find the answer.

share|improve this question
up vote 6 down vote accepted

man had the answer I missed before:

grpconv

http://linux.die.net/man/8/grpconv:

The grpconv command creates gshadow from group and an optionally existing gshadow.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.