Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

How do you modify a user on CentOS to access the root directory or any directory outside of home via vsftpd?

share|improve this question

migrated from Mar 3 '11 at 2:26

This question came from our site for professional and enthusiast programmers.

Are you asking if you can allow a user to ftp into a server and gain access to directories other than the one specified by your vxftpd configuration? – Phil Hollenback Mar 3 '11 at 5:30
up vote 0 down vote accepted

I found an easy way to do this with out affecting security.

Created a directory under the user home folder and bind it to the root directory.

Thanks all anyway!

share|improve this answer
can you tell exactly how you achieved this? – Registered User Mar 12 '11 at 21:15
mount --bind folder folder – MKN Web Solutions Jan 27 '13 at 7:42

With CentOS you have three things to keep in mind 1. the VSFTPD config file 2. the permissions on the directories that you set 3. SELinux

if you have SELinux disabled this becomes easier if not you will have to write a policy to allow this access. Changing the config file and the permissions should be fairly straight forward.

share|improve this answer
The web is awash with suggestions to disable SELinux, even passive ones. – hobodave Mar 3 '11 at 7:11
He is asking to access the root directory of a server with a FTP server ... from his question I assumed security wasn't his first priority – trent Mar 3 '11 at 7:31
Following will be better than disabling selinux, not that this is that good of an idea anyway! – PriceChild Mar 3 '11 at 10:18

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.