Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-26-2003, 11:37 PM
|
#1
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Rep:
|
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?
|
|
|
01-27-2003, 12:30 AM
|
#2
|
Member
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320
Original Poster
Rep:
|
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?
|
|
|
01-27-2003, 03:14 AM
|
#3
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
01-27-2003, 03:17 AM
|
#4
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
01-28-2003, 04:08 PM
|
#5
|
Member
Registered: Apr 2002
Location: Carmel, USA
Distribution: Fedora Core 3
Posts: 30
Rep:
|
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 12:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|