(ftp) 讓某位使用者僅能在特定目錄上傳檔案,禁止下載。 - Linux

By Delia
at 2011-04-23T00:11
at 2011-04-23T00:11
Table of Contents
使用者:user1、user2、user3
群組:project_one (user1、user2都加入此群組)
目錄:/home/project_one
目錄狀態 drwxrws--- root project_one /home/project_one
目的:讓user1、user2 可以在 project_one 上傳及下載檔案
讓user3 在 project_one 可上傳檔案 無法下載其他人檔案
我試過 vsftpd.conf 設定檔裡的 local_umask 設定為 007,
的確暫時能做到這個需求,不過卻會影響全部使用者上傳的檔案,
導致上傳的網頁無法瀏覽,因為其他人權限為---。
請問有什麼特別的方法能讓user3在project_one目錄內,能上傳而
無法下載檔案呢?先謝謝回覆的板友們。
----補上----
有辦法讓傳入 project_one目錄的檔案 umask 設為 007 嗎?
我查 acl 好像也沒有這種設定。
--
Tags:
Linux
All Comments

By Annie
at 2011-04-27T11:45
at 2011-04-27T11:45
Related Posts
在ubuntu下使用ibus新酷音問題

By Gilbert
at 2011-04-22T22:29
at 2011-04-22T22:29
如何用Windows版的Python在cmd中印出檔案內的Unicode字元

By Andrew
at 2011-04-22T20:46
at 2011-04-22T20:46
在ubuntu下使用ibus新酷音問題

By Genevieve
at 2011-04-22T20:41
at 2011-04-22T20:41
sed 插入\n ?

By Dorothy
at 2011-04-22T18:55
at 2011-04-22T18:55
四核心CPU+8G Ram 上網變順很多 這是錯覺嗎?

By Ingrid
at 2011-04-22T18:15
at 2011-04-22T18:15