Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create 1 group with 2 group IDs?

Status
Not open for further replies.

Nabby

Technical User
Nov 27, 2001
3
US
Many moons ago, we had a system setup consisting of 7 servers. On 6 of the servers, there exists a group called dba with a gid of 10031, on the 7th server, the gid is 20031. I need to install a program which requires all gids to be the same. Is there a way to add the 10031 gid to the existing group on the 7th server, or will I just need to change it and write a script to change the group on the 19371 files owned by group dba on that server? Any ideas would be appreciated!!

Thanks!
Tom
 

Hi,
do something like:

cd /
find . -group dba -exec chgrp 100031 {} \;

Then change your group id to 100031.

I haven't been at a computer in four months so can't remember the exact options to find. Henrik Morsing
IBM Certified 4.3 Systems Administration
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top