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.

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 stackoverflow.com 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
add comment

2 Answers

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
add comment

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
1  
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 linux.die.net/man/8/ftpd_selinux will be better than disabling selinux, not that this is that good of an idea anyway! –  PriceChild Mar 3 '11 at 10:18
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.