Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 :]
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 .........
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
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 ....... ?
Originally posted by nautilus_1987 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 .........
Create the user with root by typing:
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.
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
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 . )
Originally posted by nautilus_1987 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
Make sure it's running:
ps -aux
If it is, then check your /var/log/proftpd.log file for answers on how to fix the errors.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.