LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   FTP Question. (https://www.linuxquestions.org/questions/linux-networking-3/ftp-question-386135/)

carlosinfl 11-24-2005 10:13 AM

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

wym 11-24-2005 07:51 PM

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.

carlosinfl 11-25-2005 03:49 PM

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.

wym 11-25-2005 05:01 PM

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.

carlosinfl 11-25-2005 07:39 PM

Awesome!

carlosinfl 11-27-2005 10:21 AM

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.

wym 11-27-2005 03:16 PM

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.

carlosinfl 11-30-2005 12:56 PM

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 08:06 PM.