LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 11-05-2004, 06:58 AM   #1
fritz001
Member
 
Registered: Aug 2004
Posts: 127

Rep: Reputation: 18
PROFTPD advanced Configuration


well i've just readed proftpd howtos but no help answers found. hm.... maybe i'm steel a noob

anyway here is my problem

i want to setup a ftp server on my linux machine as follow

i have 5 directories /fat32-1, /fat32-2,/fat32-0, /docs_tutorials, /upload

so

1. when i login as root to have full acces to all 5 directories

2. when i login as amember of users or ftp group to be abble to acces only in read-only mode /fat32-2, /fat32-0,/fat32-1

3. when i login as anonymous to have readonly access to /doc_tutorials and fullaccess to/uploads


so far i did'n found an advanced proftod tutorial
 
Old 11-05-2004, 03:19 PM   #2
flashingcurser
Member
 
Registered: Jan 2003
Distribution: many win/nix/mac
Posts: 259

Rep: Reputation: 31
Seems like you've answered your own question, unless I'm misunderstanding you.

Set the group for /fat32-1, /fat32-2, /fat32-0 -- to the users or ftp group. Make sure that all of your users are in the "ftp" and "users" groups. (see /etc/group) Make sure that whatever group owns the directories has read and execute permissions. chmod 750 ./directory -- should do it. (You will probably want root to own the directories)

Set up a private area with a file path like--
/home/ftp/private/ -- then the 3 directories above

Then set a group for anonymous, make sure that /doc_tutorials & /uploads directories are in the "anonymous" group. Make sure that the ftp/anonymous user (see proftpd.conf) is in the "anonymous group". Again chmod 750 should do it.
Set up an anonymous (public) area with a file path like--
/home/ftp/public/ -- then the 2 directories above


One side note: IT IS VERY BAD TO LOG INTO AN FTP SERVER AS ROOT--ftp sends passwords as clear text. IT IS ALSO BAD IDEA FOR ANONYMOUS USERS TO HAVE UPLOAD!

A better solution is to set up a special group for uploading and only put those users that need to upload in that group. Then set permissions like chmod 770 ./directory (with root ownership) If you must be absolutely be root, use scp or sftp.

Beyond all the unix file permissions-- proftpd.conf has many options. One is (I think, I'm on a winders box right now)

DefaultRoot ~

Stick it in the global. This sets the users starting directory as their change root. Thus if the "anonymous" user on your system has a home dirctory that just contains just /doc_tutorials & /uploads then thats all the farther he will go. This directory should be below the starting directory. His (their) home directory should be /home/ftp/public in this example /home/ftp/public/uploads etc... For a global (who you called "root") user (who needs access to both sets of directories). The home directory global user should be /home/ftp

Other users could have their (not a great way) home directories set to /home/ftp/private -- this would be kind of a pain if they have real shell logins...

proftpd.conf has anon config examples in the file -- you will have to set up upload areas for your uploads. See proftpd website -- hehe I have to get back to work

 
Old 11-05-2004, 04:05 PM   #3
fritz001
Member
 
Registered: Aug 2004
Posts: 127

Original Poster
Rep: Reputation: 18
Set up a private area with a file path like--
/home/ftp/private/ -- then the 3 directories above

hm.....well how to do it exactly ????


last edit....
i've just returned from www.proftpd.org

i've readed those docs, but no clue how to manage my problem !!


for now i'm using SERV-U FTP on my win machine, i didn't think config a ftp serv on linux could be hm...."a little" difficult


Last edited by fritz001; 11-05-2004 at 05:02 PM.
 
  


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
proFTPD advanced configuration Satriani Linux - Software 3 04-25-2008 05:58 PM
proftpd configuration Permaximus Linux - Networking 7 12-14-2004 03:52 AM
proftpd configuration lok1 Linux - Software 1 12-05-2003 12:41 AM
proFTPd configuration shakeeb Linux - Software 1 11-23-2003 09:43 AM
ProFTPd Configuration Help needamiracle Linux - Software 2 09-28-2002 12:00 PM


All times are GMT -5. The time now is 07:00 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration