LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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

Reply
 
Search this Thread
Old 01-26-2003, 11:37 PM   #1
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Rep: Reputation: 30
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?
 
Old 01-27-2003, 12:30 AM   #2
mrsolo
Member
 
Registered: Jun 2002
Location: Where ever the Navy sends me
Distribution: Gentoo
Posts: 320

Original Poster
Rep: Reputation: 30
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?
 
Old 01-27-2003, 03:14 AM   #3
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 01-27-2003, 03:17 AM   #4
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 01-28-2003, 04:08 PM   #5
cnmill
Member
 
Registered: Apr 2002
Location: Carmel, USA
Distribution: Fedora Core 3
Posts: 30

Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Question for Newbie Tony33221 Linux - Software 3 09-10-2005 05:00 PM
typical newbie questions.... trueter Linux - Newbie 1 09-20-2004 04:55 AM
Typical FTP problem!! chamanrana Linux - Networking 1 08-12-2004 03:40 PM
Probably a typical newbie problem Jamesnslater Linux - Networking 6 01-15-2004 12:43 PM
Typical newbie questions newbietolinux Linux - Newbie 19 12-05-2001 07:34 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration