Author Topic: Webmin & ProFTPD tutorial  (Read 42124 times)

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Webmin & ProFTPD tutorial
« on: August 14, 2007, 08:06:53 pm »
Anyone know of a good Webmin ProFTPD tutorial that explains thing clearly and in plain english? Despite having run an apache server for a couple of years I haven't dabbled in FTP before.

What I after is to setup the server for one user with root access (so I can fiddle from the office when the boss's back is turned) and to have a number of users who can only login to their own directory using their own username & password.

TTFN

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #1 on: August 16, 2007, 07:20:27 am »
I haven't used any webmin / GUI tools with proftpd - I just put config directly into the proftpd.conf file.

1. To allow the root user access to proftpd use the "RootLogin on" directive. 
Also have a look at assigning 0 to GID and UID for virtual users at http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-VirtualUsers.html

2. Users can be either real UNIX users or virtual users, to lock them into their home directories look at http://www.proftpd.org/localsite/Userguide/linked/chroot.html#AEN715.  Basically you'll be using the "DefaultRoot ~" directive.

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #2 on: August 16, 2007, 10:25:40 pm »
Jeez whatever happened to plain english! Before submitting stuff like this to a web page the writers should be made to find an 8-year old and get them to okay it...

 8)

Offline castaglia

  • Administrator
  • Support Hero
  • *****
  • Posts: 5015
    • View Profile
    • http://www.castaglia.org/
Re: Webmin & ProFTPD tutorial
« Reply #3 on: August 16, 2007, 10:58:57 pm »
Would you rather there be no documentation at all?  As the author of those howtos, I'll be more than happy to remove them entirely, and let the 8 years olds fumble around blind.

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #4 on: August 17, 2007, 08:44:55 pm »
That isn't what I meant!

You wrote it for an experienced linux person - most people have little experience or knowledge of linux therefore how-to & documentation should be written to cater for them. The problem is endemic to linux and is one of the reasons why it will never get anywhere near the same number of users as windows. Too much mystique and mumbo-jumbo ;-)

 8)

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #5 on: August 20, 2007, 09:46:44 am »
These are all valid points - but given that Proftpd is free and put together by people in their spare time, how do you see a way out of it?

I'm not a developer or have anything to do with the Proftpd project, but I appreciate the hard work that the developers have put into it and I have some spare time to help other users out.

Why don't you suggest some updates to the documentation or try out a couple of Webmin clients and let others know your feedback - giving back top the community is the best way to improve it.

See one persons views on the excellent register site - http://www.theregister.co.uk/2007/08/17/triumph_of_linux/

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #6 on: August 23, 2007, 06:46:14 pm »
Thats a very good article Olly.

As to the plain english guide to setting up ProFTPD - I'll give it a try but I'll need some help with the technicalities as I will create this to enable someone who has no knowledge of Linux to be able to setup ProFTPD

Anyone up to starting off with setting it up for a single user with root access?

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #7 on: August 24, 2007, 02:58:07 pm »
Amazing... at the time of writing this 97 people had viewed the previous message but not one response.

I am afraid this confirms my suspicion that most linux users are just not interested in making things easier for newbies and that Linux is just going to remain a 'niche' product for a bunch of elitist server-room dwellers....

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #8 on: August 26, 2007, 08:35:42 pm »
I'd install the Proftpd RPM and use that as a base for any configuration, update the configuration as per the previous posts - without knowing exactly what you want to do it's difficult to help.

Also don't confuse Proftpd with Linux - Linux is just one of the many platforms (Mac OS X, AIX, etc.) that Proftpd will run on
http://www.proftpd.org/features.html

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #9 on: August 30, 2007, 07:07:40 pm »
Sorry I thought I had made it clear as to exactly what I have in mind - I want to write a plain-english (ie no technical terms) guide to setting up ProFTPD for linux newbies.

Now the installation bit was easy - so I want to move onto a basic setup for someone who wants ftp access to their server from a remote computer.

Anyone want to start  with the first thing you should do after installing the RPM?- remember no using words that appear in the linux handbook ;-)

« Last Edit: August 30, 2007, 07:46:20 pm by abacus »

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #10 on: August 30, 2007, 09:13:46 pm »
that should be it - what happens when you open a console a type in "ftp localhost" ?

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #11 on: August 31, 2007, 12:33:49 pm »
421 Service not available, remote server has closed connection.

 8)

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #12 on: August 31, 2007, 09:05:54 pm »
what do the log files say?  they should be in /var/log/

the file names and locations are defined in proftpd.conf which is usually in either /etc or /usr/etc

Offline abacus

  • New user
  • *
  • Posts: 10
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #13 on: September 01, 2007, 01:20:47 am »
No log files found...

the etc/proftpd.conf file is as follows

# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use.  It establishes a single server
# and a single anonymous login.  It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.

ServerName         "FTP Server"
DefaultServer         on

# Port 21 is the standard FTP port.
Port            21

# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask            022

# To prevent DoS attacks, set the maximum number of child processes
# to 30.  If you need to allow more than 30 concurrent connections
# at once, simply increase this value.  Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30

# Set the user and group under which the server will run.
User            nobody
Group            nogroup

# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
#DefaultRoot ~

# Normally, we want files to be overwriteable.
AllowOverwrite      on

# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
  DenyAll
</Limit>
<Global>
DefaultRoot ~
</Global>

Offline OllyC

  • Supporter
  • ***
  • Posts: 244
    • View Profile
Re: Webmin & ProFTPD tutorial
« Reply #14 on: September 01, 2007, 10:57:46 am »
stop the proftpd service and start proftpd manually with debug on by entering the following in a terminal as root:
proftpd -nd6

then repeat the "ftp localhost" test in another window - the debug info in the first window should tell you why you've got the error.


Its a good idea to configure some debug / trace settings in the proftpd.conf too, add the following:
Code: [Select]
SystemLog                 /var/log/ftplog
SysLogLevel               debug
ExtendedLog               /var/log/ftplog.extended ALL
TransferLog               /var/log/xferlog


See http://www.castaglia.org/proftpd/doc/contrib/ProFTPD-mini-HOWTO-Debugging.html

 

sighted planning