How do you modify a user on CentOS to access the root directory or any directory outside of home via vsftpd?
2 Answers
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!
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.
-
1The web is awash with suggestions to disable SELinux, even passive ones.– hobodaveMar 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– trentMar 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!– PriceyMar 3, 2011 at 10:18