해피 투게더

webmin 에서 proftpd 설정하기 본문

장난감

webmin 에서 proftpd 설정하기

보아요 2017. 6. 20. 14:18

아래는 내 설정이다
/mnt/nas 아래에 public, private 폴더

admin 유저는 두 폴더 모두에 권한이 있고 kids 유저는 public 폴더만 권한을 주었다

ftp 에서 지우기는 금지(시간도 많이 걸리고 삼바 접속후에 삭제가 더 간단)

    DefaultChdir /mnt/nas
    DefaultRoot /mnt/nas

    #VALID LOGINS
    <Limit LOGIN>
    AllowUser admin
    AllowUser kids
    DenyALL
    </Limit>


<Directory /mnt/private>

  <Limit ALL>
    AllowUser OR admin
    DenyAll
  </Limit>
  <Limit READ DIRS>
    AllowUser OR dad
    DenyAll
  </Limit>
</Directory>

<Directory /mnt/public>
  <Limit ALL>
    AllowUser OR kids,admin
    DenyAll
  </Limit>
  <Limit READ DIRS>
    AllowUser OR kids,admin
    DenyAll
  </Limit>
</Directory>



old version


    <Directory /mnt/nas/private/*>
    Umask 022 022
    AllowOverwrite off
    <Limit ALL>
    Order Allow,Deny
    AllowUser admin
    Deny ALL
    </Limit>
    <Limit MKD STOR DELE XMKD RNEF RNTO RMD XRMD>
    DenyAll
    </Limit>
    </Directory>

    <Directory /mnt/nas/public/>
    Umask 022 022
    AllowOverwrite on
    <Limit ALL>
    Order Allow,Deny
    AllowUser admin
    AllowUser kids
    Deny ALL
    </Limit>
    <Limit READ RMD DELE>
    DenyAll
    </Limit>
    <Limit STOR CWD MKD>
    AllowAll
    </Limit>
    </Directory>