Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
|
03-01-2003, 12:27 PM
|
#1
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Rep:
|
ftp server .... again
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
|
|
|
03-01-2003, 12:30 PM
|
#2
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
|
|
|
03-01-2003, 12:40 PM
|
#4
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
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 .........
|
|
|
03-01-2003, 12:40 PM
|
#5
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
someone knows howto restart proftpd?
|
|
|
03-01-2003, 12:43 PM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
03-01-2003, 12:44 PM
|
#7
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
/etc/init.d/proftpd restart
If your friend is going to connect anonymously then why would you need to create and ftp user?
|
|
|
03-01-2003, 12:46 PM
|
#8
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
http://proftpd.linux.co.uk/localsite...28.html#AEN330
If you stopped it, just type:
proftpd (as root) and it will start.
Cool
|
|
|
03-01-2003, 12:47 PM
|
#9
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
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 ....... ?
|
|
|
03-01-2003, 12:49 PM
|
#10
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
sorry I was a bit late
|
|
|
03-01-2003, 12:51 PM
|
#11
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Quote:
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.
Cool
|
|
|
03-01-2003, 12:52 PM
|
#12
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
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
|
|
|
03-01-2003, 12:53 PM
|
#13
|
Member
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750
Original Poster
Rep:
|
thnx guys, but still any help is appreciated
|
|
|
03-01-2003, 12:53 PM
|
#14
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
03-01-2003, 12:55 PM
|
#15
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
Quote:
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.
Cool
|
|
|
All times are GMT -5. The time now is 05:39 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|