Link to home
Start Free TrialLog in
Avatar of paries
paries

asked on

how to do a find and exec chmod

Hello,

I have a bunch of index.jsp that need to change the ownership from root:root to apache:apache

i can find them by
#find /home/unitnet -name "index.jsp" -exec ls -sl {} \; | grep root

looking for a way to change the owner and group to apache

thanks
Randy
Avatar of Maciej S
Maciej S
Flag of Poland image

find /home/unitnet -name index.jsp -exec chown apache:apache {} \;
ASKER CERTIFIED SOLUTION
Avatar of Maciej S
Maciej S
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial