View previous topic :: View next topic |
Author |
Message |
yayaba n00b
Joined: 16 Jul 2004 Posts: 22
|
Posted: Sun Aug 08, 2004 2:21 am Post subject: Creating anonymous ftp... |
|
|
I did some google searches and around the board but I can't seem to find a good complete newbie guide to creating anonymous ftp accounts.
Before using Mandrake it auto created them in my /var/ftp directory but since installing Gentoo, I have no idea how to go about creating the accounts.
Is there a guide somewhere I could look at? |
|
Back to top |
|
|
jspeybro Tux's lil' helper
Joined: 06 Apr 2004 Posts: 121 Location: Brussels
|
Posted: Sun Aug 08, 2004 7:25 am Post subject: |
|
|
what ftp-deamon are you using?
proftpd, vsftpd, ... ? |
|
Back to top |
|
|
yayaba n00b
Joined: 16 Jul 2004 Posts: 22
|
Posted: Sun Aug 08, 2004 7:38 am Post subject: |
|
|
I'm using pure-ftpd. |
|
Back to top |
|
|
yayaba n00b
Joined: 16 Jul 2004 Posts: 22
|
Posted: Mon Aug 09, 2004 9:21 am Post subject: |
|
|
Anyone?
Is there a guide somewhere that tells me how to manually set up an anonymous ftp account? |
|
Back to top |
|
|
jspeybro Tux's lil' helper
Joined: 06 Apr 2004 Posts: 121 Location: Brussels
|
Posted: Mon Aug 09, 2004 10:11 am Post subject: |
|
|
it depends on the ftp-deamon as far as I know.
take a look at http://www.pureftpd.org
this is what I found easily:
Quote: | * Anonymous FTP with virtual users.
-> I successfully created a virtual user called 'ftp' or 'anonymous', but
anonymous FTP doesn't work.
Pure-FTPd never fetch any info from the virtual users backends (puredb,
MySQL, LDAP, etc) for anonymous sessions. There are three reasons not to do
so: - Speed: do we need to query a database just to get the anonymous
user's home directory? We don't need to retrieve any password for anonymous
sessions.
- Consistency: with the virtual hosting mechanism.
To run an anonymous FTP server you must have a *system* account called
'ftp'. Don't give it any valid shell, just a home directory. That home
directory is the anonymous area. |
so you need to create a linux-account called 'ftp' ,give it the shell /bin/false , homedirectory /home/ftp
it doesn't say anything about the password, so you'll need to find that out for yourself.
maybe something that can be usefull, from the same document:
Quote: | * Internet Explorer.
-> Internet Explorer doesn't show any login box.
IE does a very strange trick to detect whether an FTP server does accept
anonymous connections or not. Basically, it connects to the server and logs
in as 'anonymous'. But if you say 'no' at this point, it drops the
connections with an error. You have to say 'ok, anonymous users are
allowed' and then, when a dummy password ('IE@') is sent, you say 'ah
ehm... finally... no... anonymous users aren't allowed' . Silly. To play
that game, you must run pure-ftpd with the -E (non-anonymous server) and -b
(compatibility with broken clients) flags. Then, the magic popup will show
up. But please note that IE (and browsers at large) are usually bad FTP
clients.
|
source: http://www.pureftpd.org/FAQ
hope this helps! |
|
Back to top |
|
|
yayaba n00b
Joined: 16 Jul 2004 Posts: 22
|
Posted: Mon Aug 09, 2004 10:26 am Post subject: |
|
|
Awesome... thanks jspeybro! It works now
I guess I should've looked on the main page instead of googling =p. |
|
Back to top |
|
|
|