[Proftpd-user] Setting up restricted ftp/sftp site

"John Stoffel" <[email protected]>
Newsgroups gmane.network.proftpd.user
Message-ID <[email protected]>
Hi all,

Been plugging away at setting up a new ftp/sftp site and I have some
specific requirements which I need to meet.  I've been reading and
re-reading the site trying to get a working configuration for what I
need, but I'm missing some something subtle here.  Looking at the FAQ
and sample configurations doesn't help since I just want one site, but
with very locked down users, both internal and external.

So my requirements are:

- customers are restricted to their own home directories.  This is
  solved using the mod_vroot stuff.  And DefaultRoot ~ as default.

- internal users can only see and access the directories of customers
  if they are in that customer's group.  This is working. 

- Customers can only put files into the 'to_corp' directory, and only
  read files in the 'from_corp' directory, but I can't seem to make
  this work.

  All customers belong to a group called 'cust'.  Internal users are
  members of the 'dmzftp' group, and then are added to /etc/groups as
  members of those customer groups the need access to.  The idea is
  that intneral users only see those customers they have access to,
  nothing else.  

  <Directory /path/to/cust1>
    HideNoAccess on

  <Limit CWD PWD LIST MLST STAT READ>
    AllowUser cust1
    AllowGroup cust1
  </Limit>
  <Limit ALL>
    DenyAll
  </Limit>
  </Directory>

  <Directory /path/to_cust1/to_corp>
    <Limit ALL>
      DenyAll
    </Limit>
    <Limit CDUP CWD PWD XCWD XCUP DIRS>
      AllowGroup cust1
    </Limit>
    <Limit STOR STOU>
      AllowUser cust1
    </Limit>
  </Directory>
  <Directory /path/to/cust1/from_corp>
    <Limit CWD PWD DIRS READ>
      AllowUser cust1
    </Limit>
    <Limit ALL>
      DenyUser cust1
      AllowGroup dmzftp
    </Limit>
  </Directory>
  
	
  


_______________________________________________
ProFTPD Users List   <[email protected]>
Unsubscribe problems?
http://www.proftpd.org/list-unsub.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.