Web Hosting Talk







View Full Version : Changing "ownership" of a directory


mainarea
11-24-2002, 08:09 PM
I used wget to transfer a directory from one of my servers to the other, and now my account does not have ownership of that directory. What can I do to change this? (I do have root access to the server).

Thanks,

Matt

reseller
11-24-2002, 08:17 PM
chown username:group directory

bear
11-24-2002, 08:20 PM
Originally posted by reseller
chown username:group directory You might try it with chown -R username:group directory
The -R makes it recursive, and everything under/in it will be changed as well.
Just my $.02.

mainarea
11-24-2002, 08:20 PM
Thanks

reseller
11-24-2002, 08:25 PM
Originally posted by thatguy
You might try it with chown -R username:group directory
The -R makes it recursive, and everything under/in it will be changed as well.
Just my $.02.

Yup that'll do it too :)