看板FreeBSD
标 题Re: ftp伺服器&使用者权限
发信站SayYA 资讯站 (Sat Aug 7 16:06:23 2004)
转信站ptt!ctu-reader!news.nctu!SayYa
※ 引述《[email protected]》之铭言:
> 系统中有三个user,a&b&c
> 然後我想让a使用者chroot到/home/a,对於/home/a里面的东西有完整存取权
> b使用者chroot到/home/a/b且只能新增&上传档案不能移除
> c使用者chroot到/home/a/c只能下载
> 内建的ftpd已经不太符合我的需求
> 可是我不知道pureftpd或proftpd要怎麽做到下面这样......
> 我现在的做法是a使用者家目录给/home/a
> c使用者家目录给/home/a/c
> a c使用者给相同的UID&GID并做chroot
> 但是我想不出来要怎麽做才能让b使用者只能新增&上传不能删除
用 proftpd 程式,设定档案开一个 <Directory> ... </Directory>
区段指定目录项目,里面搭配使用 <Limit> ... </Limit> 来限制。
像是:
<Directory /path>
<Limit STOR>
AllowAll
</Limit>
<Limit DELE>
DenyAll
</Limit>
</Directory>
详细部份可以参考 proftpd manual/document。
--
真诚最可贵 用心最踏实
--
※ Origin: SayYA 资讯站 <bbs.sayya.org>
◆ From: 220-130-51-241.hinet-ip.hinet.net