LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Typical Newbie pro-ftp question (https://www.linuxquestions.org/questions/linux-general-1/typical-newbie-pro-ftp-question-42895/)

mrsolo 01-26-2003 10:37 PM

Typical Newbie pro-ftp question
 
Ok, I am slowly learning by trial and error how to set up my FTP server. I have my home directory set as /var/ftp. When a person logs on everything is fine except when they type cd .. in the home dir. Obviously it goes all the way back to the root folder. How do I set it up so that the highest folder they can go to is the /var/ftp folder?

mrsolo 01-26-2003 11:30 PM

ok, I made the /var/ftp folder the chroot folder and now none of my symlinks show up. Plus the .files show up. How do I correct this?

MasterC 01-27-2003 02:14 AM

Well you really can't symlink below your /

When you create a default root it's setting the new environments root (much like a normal chroot). So now there is nothing below / which to you is /var/ftp but to anyone who ftp'd in is just /

You have several options though. You can either re-arrange mount points to be able to symlink from within the chrooted environment better. Maybe mount /var/ftp as one partition, and then /var/ftp/files as another and so on. This would require more work, but would be your best way of doing IMO.

Your other option is changing your chroot to something lower, something more along the lines of your actual / The huge problem with that is you've really got to watch for permissions then. You will want to set things up really secure, only allowing execution bit's to be set on the folders in which you want anyone to have acess to.

HTH

Cool

MasterC 01-27-2003 02:17 AM

You do have some other options, such as hard linking, and things of that nature. Check out the ProFTPd documentation for more info, and if you have any questions on a specific portion, I'll be happy to help:
http://www.proftpd.org/docs/directiv...tion_full.html

cnmill 01-28-2003 03:08 PM

Well it is kind of like buying a cadilac to walk across the street, but it have you considered using WEBMIN? Personally I don't have the time to learn the low level configuration of 7 different types of servers, so I use the wimpy GUI option. Gives me more time to look at pr)n :)


All times are GMT -5. The time now is 02:32 AM.