2009年3月29日星期日

FTP Control Example

1. Modify /etc/ftpaccess.ctl

################################################################################
# FTP Access Control -> Take Effect Immediately -> No Need to Restart Subsystem
################################################################################
#
# Read Only Folders -> No matter what the folder right is
# Read Only Folders -> No matter
#
# writeonly : disable get command to specific folders
# readonly : disable put/delete command to specific folders
# For all users include root
#
#readonly: /data
#writeonly: /data/test
readonly: /data/test
writeonly: /data
readwrite: NONE
#
# Deny Host Login
#
#deny: user1
#
# Symbolic Link Not Work For Both "useronly" and "puseronly"
#
#
# Anonymous Login -> Nth show to user but can upload files
# -> cannot change folders out of user home directory
#
# Cannot change home directory to / -> everything will be even by user
# -> i.e. useronly,puseronly not hide anything
# -> for users
#
#useronly: user1
#
# Need User Password -> Nth show to user but can upload files
#
#puseronly: user1,ftpuser

Reference Link

沒有留言: