PDA

View Full Version : proftpd conf, need some help


niko
21st June 2005, 11:25 AM
k
I'm a newbie for linux. I'm setting up a game server wich will also have an important ftp server. I know enough to install fedora core 3, setup quake3, team speak, vnc and some services but i'm kinda lost with this ftp and accounts.. :)

If anyone could give me some help on making proftpd config file, i'm now in squeze with time and i was totaly lost with manuals/docs on proftpd.. ;)
I've installed proftpd from a rpm package.
It' works, all I need is a conf file..

Basicaly i need all local accounts disabled and 2 of them made just for ftp (with no console logins). One that would have onlu read-only acces to a directories of the ftp server (for download) and the other one that would have acces to only one isolated directory (say a home directory of that user) for uploading files (with a restriction that noone can download the uploaded files untill i move them (directly on server as a root user) to the ftp dir so that they can be downloaded with the 1st account).
Both accounts need to be chroot on, i also need a maxusers 20 on the 1st account and on the second for upload i need speedlimit 50kb/sec..

Can someone make this for me? At least to tell me a good reference or a really similar cfg (sry, but i was lost with example cfg's on proftpd.org :/)

TNX a million in advance ppl!!!


p.s. if this was disscused earlier can u give me a link? :p
i've also tried vsftpd and had the same problems..

johny
21st June 2005, 11:55 AM
There is a simple graphical configuration utility for proftpd. It's called gproftpd.

http://mange.dynalias.org/linux.html

niko
21st June 2005, 03:30 PM

tnx,.. and it works great!!! :)

theunknown
23rd June 2005, 01:37 AM
After I followed the instruction on that page, when I try to restart my ftp server by using this command

/etc/init.d/proftpd restart

it gives me an error:

[root@localhost ~]# /etc/init.d/proftpd restart
Shutting down proftpd: [ OK ]
Starting proftpd: [FAILED]


i tried it again and this is what I get

[root@localhost ~]# /etc/init.d/proftpd restart
Shutting down proftpd: [FAILED]
Starting proftpd: [FAILED]


The only way I can turn it back on is do a command:

gproftpd

THen a program opens, and then I can click on the ONLINE button
can someone help me?

niko
23rd June 2005, 09:09 AM
honestly don't know,..
since the online/offline command from gproftpd is a littly buggy i do it from terminal window with su privilages:
service proftpd status
service proftpd stop
service proftpd start

and you have service --status --all to see all other services..

You've probably got the FAILURE on shuting down the server 'couse the server wasn't on-line in the 1st place, and the second failure is most probably 'couse your proftpd.conf is not setup properly so the app couldn't start the server.
You should try loading the default gproftpd config and try starting the server with that config to be sure that the problem is with config file.
If it works than edit one line on the config by one and test it.

GL!

mpaiva
23rd June 2005, 12:18 PM
After I followed the instruction on that page, when I try to restart my ftp server by using this command

/etc/init.d/proftpd restart

it gives me an error:

[root@localhost ~]# /etc/init.d/proftpd restart
Shutting down proftpd: [ OK ]
Starting proftpd: [FAILED]


i tried it again and this is what I get

[root@localhost ~]# /etc/init.d/proftpd restart
Shutting down proftpd: [FAILED]
Starting proftpd: [FAILED]


The only way I can turn it back on is do a command:

gproftpd

THen a program opens, and then I can click on the ONLINE button
can someone help me?


Why dont you use VSFTP? Its easier !
Marcus

theunknown
23rd June 2005, 10:06 PM
My service is up for sure. But when i tried restart it shuts but doesnt start at all...
maybe you are right about my profptd is not configure properly...

How do I:

You should try loading the default gproftpd config and try starting the server with that config to be sure that the problem is with config file.

niko
24th June 2005, 12:12 AM
@theunknown
i have no idea how to do that :)
all i know is that gproftpd offers you it's default config upon install, maybe there is an option somwhere in the menu, read the manual,.. (man gproftpd)
maybe you should try erasing your cfg and maybe gproftp will replace it automaticly with a new one
(don't erase it, just place it into another directory)..
there's also an option to create another server, try that, maybe it loads the default cfg there so configure the new server as yours and delete the old one

btw are you loged in as root?

@mpaiva... sry but vsftpd sucks ass that's why i tried proftpd..

theunknown
24th June 2005, 05:31 PM
yup.. vsftpd is not in the webmin.


I have no idea how to do this:

maybe you should try erasing your cfg and maybe gproftp will replace it automaticly with a new one
(don't erase it, just place it into another directory)..
there's also an option to create another server, try that, maybe it loads the default cfg there so configure the new server as yours and delete the old one

niko
25th June 2005, 12:30 AM
man gproftpd

www.google.com search for proftpd and gproftpd :)

hm.. reinstall gproftpd?