Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Creating anonymous ftp...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
yayaba
n00b
n00b


Joined: 16 Jul 2004
Posts: 22

PostPosted: Sun Aug 08, 2004 2:21 am    Post subject: Creating anonymous ftp... Reply with quote

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
View user's profile Send private message
jspeybro
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2004
Posts: 121
Location: Brussels

PostPosted: Sun Aug 08, 2004 7:25 am    Post subject: Reply with quote

what ftp-deamon are you using?

proftpd, vsftpd, ... ?
Back to top
View user's profile Send private message
yayaba
n00b
n00b


Joined: 16 Jul 2004
Posts: 22

PostPosted: Sun Aug 08, 2004 7:38 am    Post subject: Reply with quote

I'm using pure-ftpd.
Back to top
View user's profile Send private message
yayaba
n00b
n00b


Joined: 16 Jul 2004
Posts: 22

PostPosted: Mon Aug 09, 2004 9:21 am    Post subject: Reply with quote

Anyone?

Is there a guide somewhere that tells me how to manually set up an anonymous ftp account?
Back to top
View user's profile Send private message
jspeybro
Tux's lil' helper
Tux's lil' helper


Joined: 06 Apr 2004
Posts: 121
Location: Brussels

PostPosted: Mon Aug 09, 2004 10:11 am    Post subject: Reply with quote

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
View user's profile Send private message
yayaba
n00b
n00b


Joined: 16 Jul 2004
Posts: 22

PostPosted: Mon Aug 09, 2004 10:26 am    Post subject: Reply with quote

Awesome... thanks jspeybro! It works now :)

I guess I should've looked on the main page instead of googling =p.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum