Operating System - HP-UX
1833750 Members
2822 Online
110063 Solutions
New Discussion

Using find to globally change a group name

 
Mike Kuhar
Advisor

Using find to globally change a group name

Quick question.

I have a user, codba, who owns files throughout the system. I need to change his gorup from dba to appdba. I come up with the find command:

find / -user codba -exec chgrp appdba () \;

Is there a downside to running this command?

thanks -mk
3 REPLIES 3
Mark Grant
Honored Contributor

Re: Using find to globally change a group name

yes!

You need to use {} instead of ()

Other than that it will work OK.
Never preceed any demonstration with anything more predictive than "watch this"
Mike Kuhar
Advisor

Re: Using find to globally change a group name

Sorry, a typo on my part.
Mike Kuhar
Advisor

Re: Using find to globally change a group name

Thanks for your imput, Mark. I ran it and it worked as advertised.