Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have to upload some videos files for streaming purpose. While uploading the videos as a ftp user, it will have the ftp user and group permission. But now in my case, the files uploaded by the ftp user should have root user and group permission. Is there any way to upload in such a way?.. Now I am using vsftpd

share|improve this question
up vote 3 down vote accepted

you can re-configure your ftpd to run as root, and there for all files written by ftpd will have root permissions, although this is not very recommended.

root user can access files that are owned by ftp user, there is no need to change owner ship if root is the one who will be opening those files.

share|improve this answer

You might be better leaving the ftp daemon running as it is and instead post processing by running a little shell script using root's crontab that checks for new files in the ftp upload folder and runs a chown command if it finds any, or just chown's the whole directory and its contents if you like, once a minute.

share|improve this answer

Your Answer


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.