Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

share|improve this question
add comment

2 Answers

up vote 3 down vote accepted

adduser ftpuser

passwd ftpuser # set the password

chown -R ftpuser /var/www/html/

share|improve this answer
add comment

I think the answer from packs is generally correct, but you should be careful about changing ownership of too mrny files and directories unexpectedly. It's a good idea to run something like

find /var/www/html -print | less

and verify it matches the set of files and directories you expect to change.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.