《問題》[Pure-Ftpd]如何設定使用者上傳的檔案權限



贊助商連結


student
2004-08-13, 03:59 PM
我使用Pure-Ftp 架設FTP,
並開放mis帳號給使用者登入...

當有人使用mis 建立目錄,或是上傳檔案...

請問要如何設定才能讓mis 這個身分所建立的目錄或是檔案..
權限都為777..

感謝各位的回覆!!

贊助商連結


repsol
2004-08-13, 05:06 PM
http://www.pureftpd.org/README

- '-U <umask for files>:<umask for dirs>': Change the file creation mask.The default is 133:022. If you want a new file uploaded by a user to only be readable by that user, use '-U 177:077'. If you want uploaded files to be executable, use 022:022 (files will be readable -but not writable- by other
users) or 077:077 (files will only be executable and readable by their owner) . Please note that Pure-FTPd support the SITE CHMOD extension, so a user can change the permissions of his own files