Change ownership of directory and all contents to a new user from root.

Posted by Andrew Fashion on Server Fault See other posts from Server Fault or by Andrew Fashion
Published on 2011-01-15T01:30:54Z Indexed on 2011/01/15 1:55 UTC
Read the original article Hit count: 233

Filed under:
|

I created a website under /var/www/html/ all under root, all images, files, .htacess, directories, etc... I uploaded and configured everything as root.

I want to make it it's own username/password so it's not owned by root. I currently do not have the user account made either, I want to also setup FTP for the user account.

There is also about 30GB of images in the folder as well.

How can I go about changing all of this?

I am running CentOS 5.5 64 bit.

Thank you!

© Server Fault or respective owner

Related posts about centos

Related posts about user-accounts