Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
|
 |
11-24-2005, 10:13 AM
|
#1
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Rep:
|
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
|
|
|
11-24-2005, 07:51 PM
|
#2
|
LQ Newbie
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26
Rep:
|
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.
|
|
|
11-25-2005, 03:49 PM
|
#3
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
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.
|
|
|
11-25-2005, 05:01 PM
|
#4
|
LQ Newbie
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26
Rep:
|
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.
|
|
|
11-25-2005, 07:39 PM
|
#5
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
Awesome!
|
|
|
11-27-2005, 10:21 AM
|
#6
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
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.
|
|
|
11-27-2005, 03:16 PM
|
#7
|
LQ Newbie
Registered: Oct 2005
Location: Toronto
Distribution: Red Hat 8.0
Posts: 26
Rep:
|
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.
|
|
|
11-30-2005, 12:56 PM
|
#8
|
Senior Member
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905
Original Poster
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 12:52 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
|
|