1834697 Members
2085 Online
110069 Solutions
New Discussion

Re: chown & chgrp

 
SOLVED
Go to solution
Mark Mitchell
Trusted Contributor

chown & chgrp

I know that I am missing something here. What is the way to change the group and owner for a directory and at the same time all of its lower directories and files too? I know that there is a quick way to do it so that you don't have to fish around all of the sub-directories to make the same change.
3 REPLIES 3
Volker Borowski
Honored Contributor
Solution

Re: chown & chgrp

Hi Mark,

chown -R user:group dirname

does both (grp and own) in one statement.

Volker
Rita C Workman
Honored Contributor

Re: chown & chgrp

I think you may be meaning:

chown -R user:group directory_name

Just a thought,
/rcw
Mark Mitchell
Trusted Contributor

Re: chown & chgrp

Thanks for helping my brain freeze