Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.