Results 1 to 3 of 3
FTPserver setup I tried searching but it seems to be broken. It only returns: Code: The page you are trying to access does not exist. Please select a page from ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-27-2006 #1
I tried searching but it seems to be broken. It only returns:
The page you are trying to access does not exist. Please select a page from the main menu.
I run Fedora Core 5 with vsftpd that come with the package. I am an experienced user but a novice to linux.
What I want done is this.
1. I need a user who has readonly access to a directory and everything in it.
Lets call that directory /media/ftp/events/.
2. I need users who has full access to subdirectories to the one above.
Example: /media/ftp/events/user1, /media/ftp/events/user2 ...
I have managed to chroot jail local users to their homedirectories.
setsebool -P ftp_home_dir 1 setsebool -P ftpd_is_daemon 1 chmod 0775 /home/user1/ service vsftpd restart
I have created a user and set its homedir to /media/ftp/events/user1. It has been chmoded like the one above. I guess it has something to do with SELinux but I'm out of both clues and guesses. All I get from the server is:
500 OOPS: cannot change directory:/media/ftp/events/user1
(I'm including vsftpd.conf)
I have now confirmed that this caused by SELinux. I ran a test where I disabled SELinux. I had the same problem with the users homedirectories in /home before I set up the chroot jail (desribed above). Is there a way to do the same thing with another directory?
- 05-29-2006 #2
- Join Date
- Apr 2005
FTP Server Setup
Can you disable the chroot and then try to accessthe directory with that particular specific user just to make sure that the ftp server is working fine and the user is able to access the directory and then move forward with the same.
- 05-29-2006 #3
Thank you for your reply. I am really close abandoning all hope and setting up WindowsXP instead. God forbid but I have never before experienced problems like this one.
Here we go...
I removed the user from /etc/vsftpd/chroot_list/, restarted vsftpd and tried to log in with the same result as before. Other users can log in to their respective homedirectories (chroot jail'ed or not). I have disabled chroot by commenting it out in vsftpd.conf.
The only way I can set homedirs outside /home is if I disable SELinux.
I figured that the user can have its homedir in /home IF I can put a link to the other dir in it. I put aCode:
ln -s /media/ftp/events/user1 mediaCode:
[R] CWD media [R] 550 Failed to change directory.
I hope I make some sense with what I'm saying and to sum it all up,
I want users to be able to access directories outside /home. Some of them need to write and some just read. I have absolutely no problem doing this with SELinux disabled but can not run the machine without it.
Last edited by Jonas Axelsson; 05-29-2006 at 02:35 PM. Reason: typo