ftp server .... again
:Pengy:
I have a super-numb question: How can I quickly configure ProFTPd server so that my friends could connect to my box as anonymous to upload and download some files :] a big thnx in advance |
Here is a tutorial.
|
Also, you can copy my proftpd.conf file and use it. Mod a few things out of it if I were you though (like the Passive). Here it is:
ftp://masterc.no-ip.org/share/proftpd.conf OR http://masterc.no-ip.org/share/proftpd.conf Cool |
thnx of course, but I had similar config.
The thing I need is, some tips, fo e.g: 1. create ftp user 2. create /home/ftp/uploads 3. use inetd I mean I want to hear the guy who have made proftp working :) For e.g if someone asked me how to config Apache, it would be no problem for me to help ......... :) |
someone knows howto restart proftpd?
|
As for upload....
You don't wanna allow anonymous upload (normally). I'd require them to login to upload. If you want to make a generic user for all of them to use (assuming you trust them enough) then just create a regular user on your system ( I prefer to use adduser via command line). Then they can login with that person. If you want the directory they automatically appear in to be the same as the anonymous one, change that users home directory to be the same as the anonymous one (Mine is /home/ftp). Also, create the user ftp and group ftp Quick and easy and I think that about covers it all. Create the group first, then when adding new users (and the ftp user) you can put them directly into the ftp group instead of the default "users" group. When modifying their home directory (in /etc/passwd) you should probably modify their shell too. If you do wanna allow them to ssh into your box, use rbash, if you don't want them to ssh in at all, use /bin/false Cool |
/etc/init.d/proftpd restart
If your friend is going to connect anonymously then why would you need to create and ftp user? |
http://proftpd.linux.co.uk/localsite...28.html#AEN330
If you stopped it, just type: proftpd (as root) and it will start. Cool |
:) lots of useful info........
So what I have done: 1. I have user nobody and ftp, and group nogroup and ftp 2. I use proftpd basic conf ..................................... MasterC maybe you know how can I restart the server with some command and where to place welcome.msg ....... ? |
sorry I was a bit late :)
|
Quote:
adduser First off though, open up /etc/group and add a group: ftp With an entry like so: ftp::50: Then fire up adduser and when you get to the point of initial group, add them to the ftp group. I own everything to this user/group so when you create the home directory and: mkdir /home/ftp/uploads make sure you own them to that user: chown -R /home/ftp As for inetd, really I don't mess with it alot. I looked through it a bit, but there wasn't much I needed to dork with. Cool |
using anonymous config
=========== NcFTP 3.1.3 (Mar 27, 2002) by Mike Gleason (ncftp@ncftp.com). Sorry, no server available to handle request on cl176-220.ktv.lt. Server hungup immediately after connect. ================= using basic.conf ===== 500 Sorry, no server available to handle request on cl176-220.ktv.lt. ftp> ===== well it seems I will have alittle bit of work to do |
thnx guys, but still any help is appreciated
|
I don't ever restart my server. However, you could easily kill it. As root:
killall proftpd OR ps -aux (locate the pid) kill -15 pid (I don't know if 15 is a good signal, but that's what I use ;) ) Then just start it again: proftpd As for your welcome.msg... I have mine in the /home/ftp directory, as a .message file (notice the . ;) ) Cool |
Quote:
ps -aux If it is, then check your /var/log/proftpd.log file for answers on how to fix the errors. Cool |
All times are GMT -5. The time now is 02:46 AM. |