LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 03-01-2003, 12:27 PM   #1
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
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
 
Old 03-01-2003, 12:30 PM   #2
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Here is a tutorial.
 
Old 03-01-2003, 12:38 PM   #3
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 03-01-2003, 12:40 PM   #4
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
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 .........
 
Old 03-01-2003, 12:40 PM   #5
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
someone knows howto restart proftpd?
 
Old 03-01-2003, 12:43 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 03-01-2003, 12:44 PM   #7
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
/etc/init.d/proftpd restart

If your friend is going to connect anonymously then why would you need to create and ftp user?
 
Old 03-01-2003, 12:46 PM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
http://proftpd.linux.co.uk/localsite...28.html#AEN330

If you stopped it, just type:
proftpd (as root) and it will start.

Cool
 
Old 03-01-2003, 12:47 PM   #9
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
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 ....... ?
 
Old 03-01-2003, 12:49 PM   #10
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
sorry I was a bit late
 
Old 03-01-2003, 12:51 PM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 03-01-2003, 12:52 PM   #12
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
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
 
Old 03-01-2003, 12:53 PM   #13
nautilus_1987
Member
 
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Original Poster
Rep: Reputation: 30
thnx guys, but still any help is appreciated
 
Old 03-01-2003, 12:53 PM   #14
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
Old 03-01-2003, 12:55 PM   #15
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ftp(through web site access to ftp server) kelper Linux - Software 4 07-03-2015 05:14 PM
ftp server - Pure ftp - logs in OK but no files visible tp11235 Linux - Networking 2 08-30-2005 05:11 AM
FTP Server Up and running... how do I hide ftp users from local login screen? joe1031 Mandriva 2 03-18-2005 04:24 PM
How do I set my FTP server to accept passive FTP? imsam Linux - Newbie 3 12-12-2004 06:22 AM
how can I restrict ftp users listing files from a pure-ftp server adrianmak Linux - Networking 2 12-31-2002 08:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration