Portal Home > Knowledgebase > Articles Database > Command needed to update ownerships of several files


Command needed to update ownerships of several files




Posted by monitor2000com, 04-25-2011, 11:22 AM
Hello , i have copied a folder from a account to another account user1/public_html/images >>to>> user2/public_html/images i was wondering if anyone could give me a command to update ownership of the files & Direcectories ,etc.. which are located in user2/images Server Details : OS : Centos Panel : Direct-Admin PHP Based on : Dso Thank u

Posted by Akisoft, 04-25-2011, 11:32 AM
The Linux command line command is... chmod -R user:group /path/to/directory -R meaning recursive permissions.

Posted by monitor2000com, 04-26-2011, 02:57 AM
actually i wanted to change chown ...

Posted by Thomas Manning, 04-26-2011, 03:28 AM
chown -R user2. user2/public_html/images

Posted by Akisoft, 04-26-2011, 04:01 AM
Yeah, I meant chown, that's what I get for doing it from my phone .

Posted by monitor2000com, 04-26-2011, 09:47 AM
Thank you very much

Posted by wartungsfenster, 04-26-2011, 04:14 PM
Rh to avoid any traps with people symlinking to /etc/shadow



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
reselling (Views: 764)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.