LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-18-2002, 10:29 PM   #1
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Unhappy proFTPd woe setup


I included proFTPd during the Mandrake 8.1installation. I read the manuals from proFTPd site and I'm still having problems logging with FTP clients (WS FTP, gFTP, CuteFTP, etc).

I would like for my FTP server do is:
* Store user account's files in seperate folders
* Let users access their FTP files when they logged in the LINUX console or X Window
* Not let people from outside LAN to access proFTPd (I will change it to internet when I setup FTP correctly)
* Only let LAN users access to proFTPd (this will change too).
* Instead of Root having read and write access to the FTP folder. Let users have both read and write access so they can move files within their directory.
* Restrict users to only their FTP folder when using FTP Clients
* Limit bandwidth to around 30 Kilobytes per second both uploads and downloads. My cable connection is limit to around 2500 kilobytes.

I already know how to link a folder using the mount command but I don't know how to add a link folder in fstab. I don't mind typing the mount command by hand everytime but it can get annoying over time. Also I'm having trouble writing to the FTP folder when I'm under a username other than root or super root. I don't know how to chmod the folder every time.

What is the usual path to my proFTPd server when using FTP clients? Is it ftp.localhost.localdomain or something else?

I'm a linux newbie so go easy. Windows hates my hardware, but LINUX likes it. I don't get any boot hangs when using LINUX. For more information about my computer go to http://electro.netfirms.com/mycpureview.shtml
 
Old 02-19-2002, 06:11 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
* Store user account's files in seperate folders

You can use the homedirectory for that which would be /home/username. If you want it to be in a different location you can edit the /etc/passwd file to set the home dir of each user to something like /somedir/ftp/username.

* Let users access their FTP files when they logged in the LINUX console or X Window

If you are using their home directory then they already have access to all those files.

* Not let people from outside LAN to access proFTPd (I will change it to internet when I setup FTP correctly)

There are many ways you can do that.
- You can use your firewall to only allow internal connections
- You can start proftpd from xinetd and use /etc/hosts.allow to only allow hosts from inside to connect
- You can set rules in the proftpd.conf file to only allow internal hosts to connect

* Only let LAN users access to proFTPd (this will change too).

Same as preventing access for external users.

* Instead of Root having read and write access to the FTP folder. Let users have both read and write access so they can move files within their directory.

Each user should be the owner of their own home directory. If each home directory is a branch of some ftp directory. Then root should still own the ftp directory and it should have permissions like rwxr-xr-x

* Restrict users to only their FTP folder when using FTP Clients

Add the following line to /etc/proftpd.conf:
DefaultRoot ~

~ is an alias for the users home directory

* Limit bandwidth to around 30 Kilobytes per second both uploads and downloads. My cable connection is limit to around 2500 kilobytes.

Add something like this to the /etc/proftpd.conf file:
RateReadBPS 30720
RateReadFreeBytes 5120
RateReadHardBPS on

Read more about it in the proftpd documentation.


* I already know how to link a folder using the mount command but I don't know how to add a link folder in fstab. I don't mind typing the mount command by hand everytime but it can get annoying over time.

Read man fstab to find out the exact configuration of the file.
Basically each entry is something like:

<file system> <mount point> <type> <options> <dump> <pass>
/dev/hda5 /home ext2 defaults 0 1

* Also I'm having trouble writing to the FTP folder when I'm under a username other than root or super root. I don't know how to chmod the folder every time.

Best would be to also give write permissions to a special group and make the user part of that group. You'll have to run:
chgrp specialgroup /ftpfolder
chmod g+w /ftpfolder


* What is the usual path to my proFTPd server when using FTP clients? Is it ftp.localhost.localdomain or something else?

It's the domain name you've given the server. If it doesn't have a fully qualified domain name you can also use the hostname or the ip address.
 
  


Reply



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
how to setup proftpd newbie007007 Linux - Networking 1 12-14-2004 02:08 PM
CVS PSERVER setup woe - Fedora Core 2 paulecoyote Linux - Software 0 06-03-2004 01:28 PM
Proftpd Setup Help Evilone Linux - Networking 4 01-14-2003 12:20 PM
how do you setup users on ProFTPD? ShawnD Linux - Software 22 08-01-2002 09:33 AM
ProFtpd setup question rlkiddjr Linux - Networking 6 03-09-2002 07:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:56 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