LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-24-2005, 10:13 AM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Question FTP Question.


I have vsFTPd working on my debian server and I like it. It has no problems that I can find right now only because I have anonymous logins disabled and my wofe and I are the only ones with user accounts on the server who login and transfer files.

Now my question...

How can I set up my ftp site like this link?
As you can see it requires no login and just takes you right to the file structure. I don't think this is a anonymous login because it treats it just like a open web URL rather than trying to throw up login info. If I wanted to open a section on my server like the link above to pubicly share some data / photos, how would I go about doing so?

My FTP Site
 
Old 11-24-2005, 07:51 PM   #2
wym
LQ Newbie
 
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26

Rep: Reputation: 15
you need to enable anonymous login to make it a public ftp site. after doing this, your site will be exactly like the slackware site.
 
Old 11-25-2005, 03:49 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Quote:
Originally posted by wym
you need to enable anonymous login to make it a public ftp site. after doing this, your site will be exactly like the slackware site.
Are you sure? I would assume you would still get the login box and just have to type in user name = anonymous and no password.
I will give it a shot and see non the less.
 
Old 11-25-2005, 05:01 PM   #4
wym
LQ Newbie
 
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26

Rep: Reputation: 15
Quote:
Originally posted by Carlwill
Are you sure? I would assume you would still get the login box and just have to type in user name = anonymous and no password.
I will give it a shot and see non the less.
Yes, I am very sure. Browsers' default login to a ftp site is anonymous, if default login succeed, they don't give a login box.

Actually, we should access a ftp site like this:
ftp://user:thepass@ftp.slackware.com:21/pub/
But that has too many key strokes and is complex syntax, so by default,
we just key in:
ftp://ftp.slackware.com/pub/
instead of:
ftp://anonymous:thepass@ftp.slackware.com:21/pub/
which is exactly like:
ftp://ftp.slackware.com/pub/

However, other ftp client programs could ask for login before connect.

The slackware site is a public site, if you want to make yours like that, anonymous login must be enabled, at least. I am 200% sure.

Last edited by wym; 11-25-2005 at 05:45 PM.
 
Old 11-25-2005, 07:39 PM   #5
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Awesome!
 
Old 11-27-2005, 10:21 AM   #6
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
One more questions...

Right now my FTP like I said has anonymous logins disabled. I only have 2 users on my Linux machine so when either one of use go to the FTP address, after we login, we are limited to our own home directories. If I take of the restriction for anonymous logins, and then my FTP URL resolves straight to where ever with no login page, what directory is it accessing from my FTP server? If we are logged in anonymously, where exactly are we on my Linux box? I would not know where to put files and how far an anonymous user is restricted in the directory tree.
 
Old 11-27-2005, 03:16 PM   #7
wym
LQ Newbie
 
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26

Rep: Reputation: 15
In Redhat 8, anonymous root is /var/ftp/, anonymous can not change their root directory. So don't worry, the highest level of directory which anonymous can reach is here, it is safe.

If you want to share files to anonymous, put them to /var/ftp/pub/

By default, after local users (shell users) login ftp, they are brought to their own home directory, such like /home/wym, but
they can chroot to anywhere they are permitted locally, unless you specify this in /etc/vsftpd.conf

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

and in /etc/vsftpd.chroot_list, there are those usernames whom you want to chroot, those who are not in the list can not chroot.

Last edited by wym; 11-27-2005 at 03:51 PM.
 
Old 11-30-2005, 12:56 PM   #8
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
I think in mine it would be /home/ftp. When I installed vsFTPd on my debian machine, I think it created an ftp user and I think that is as far as it can go...
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP question kuplo Linux - Newbie 1 11-22-2005 07:35 PM
FTp question Diazo Linux - Newbie 1 02-06-2003 01:53 PM
Question about ftp Drogo Linux - Software 2 10-10-2002 10:54 PM
A question about wu-ftp yixudong Linux - General 1 09-22-2002 07:50 PM
FTP Question ! fin Linux - Newbie 2 04-13-2002 11:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:53 PM.

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
Open Source Consulting | Domain Registration