On Mon, 3 Jun 2002, Azrael wrote:
> Can't seem to get anonymous ftp working either.
>
> Been fiddling on webmin and I thought I had done the trick.. but to no
> avail.
>
> Can anyone tell the the correct details to put into the proftp.conf
> file? If that's indeed what I need to do.. or what I should do otherwise :)
>
> many thanks
>
> -- Azrael
Azrael,
ok...assuming that your directory tree for your ftp server looks at least
like this;
/var/ftp
--> /pub
...there is some basic system setup that you will need to perform before
you can start and use your ftp server. I would heartily suggest at this
point though that you thoroughly read the docs at the proftpd web site to
get a good understanding of how it works and what's going on. this
knowledge is important if you're going to run an FTP server and could, at
some point, save your machine and it's data. you'll find attached to the
message a copy of my current proftpd.conf to work off of. If you like,
please feel free to modify it and use it on your server. please understand
that you will have to modify it in order to suit the needs of your
machine.
that being said, here is the down and dirty setup proc.
IMPORTANT: /var
-->/ftp /* everything under this dir including /ftp
-->/pub/ * should NOT be owned by root!
*/
1. as root in a terminal add the user "anonymous".
]# adduser anonymous <ENTER>
/* important note: unless you're NOT going to open this
* FTP server for public use then do not set a password
* for user "anonymous"
*/
2. (optional - but definately recomended)
using linuxconf, add a new user named ftpadmin and set this users
/home dir as /var/ftp. now you will need add user ftpadmin to the
group "ftpadmin". you can do so by clicking on the "groups"
definition in Linuxconf. when you've created this user and apply the
settings Linuxconf will want ask you about changing ownership of
/var/ftp. do so Recursively.
3. create the folder /var/ftp/incoming. as stated before it's owner should
be ftpadmin.ftpadmin. chmod this directory 3773. even if you choose
not to allow uploading to your ftp server it's still good practive
to have this folder present.
4. all folders under /var/ftp/pub including /pub should be chmod'd 755,
while the files themselves should have the permissions of 644 and ALL
be owned by ftpadmin.ftpadmin.
5. check the services file /etc/services and make sure that these lines
are uncommented:
ftp-data 20/tcp
ftp-data 20/udp
ftp 21/tcp
ftp 21/udp
these ports must be open in order for outside machines to connect to
the ftp server.
6. now you're ready to start your server for the first time. one last
check to make. if your proftpd.conf file is correctly configured
save the file in /etc and issue this command in a terminal window
as root user.
service proftpd restart <ENTER>
you should see a response similar to this in your terminal.
Shutting down proftpd: [ OK ]
Starting proftpd: [ OK ]
if you recieve an error message of some sort, then check your
/etc/proftpd.conf file to make sure that everything is correctly
defined. remember to read the documentation from the proftpd site.
there is a lot of good information contained there that will help
you understand what's going on should you need to trouble-shoot
your installation of proftpd. If have you have trouble and don't
understand what's going on give another holler.
--
Mark
a.k.a. daRcmaTTeR
------------------
"If your wife told you NOT to do it there's probably a real good reason!"
-------------------------------------------------------------------------
REGISTERED LINUX USER #186492
Penguinized since 1997
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com