-1

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

1
  • 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? Mar 3, 2011 at 5:30

2 Answers 2

0

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!

2
  • can you tell exactly how you achieved this? Mar 12, 2011 at 21:15
  • mount --bind folder folder Jan 27, 2013 at 7:42
-2

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.

3
  • 1
    The web is awash with suggestions to disable SELinux, even passive ones.
    – hobodave
    Mar 3, 2011 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, 2011 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!
    – Pricey
    Mar 3, 2011 at 10:18

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .