Chinaunix

标题: 如何设置FTP [打印本页]

作者: worldmax    时间: 2006-04-06 14:35
标题: 如何设置FTP
solaris 9 操作系统

我希望不安装任何软件的情况下,实现某一个用户只能对某一个目录拥有FTP的访问、删除、修改、添加权限

如何做?

谢谢
作者: cradler888    时间: 2006-04-06 16:13
标题: proftp
简单实用,网上的教程很多的!
作者: worldmax    时间: 2006-04-06 16:18
网上好像都是只能限制在 HOME 目录下 ,在ftpaccess中加上 restricted-uid  username。

我不是要限制在HOME目录下,比如 我只能让 user1 用户访问 /abc/xyz 目录,怎么做?
作者: wwxipconfig    时间: 2006-04-06 16:22
没有做过,回去做个实验!
作者: worldmax    时间: 2006-04-07 16:33
有人知道吗?
作者: cradler888    时间: 2006-04-13 12:07
#设置skate用户在upload的限制
#DELE删除权限
#RNFR RNTO重命名权限
#RMD XRMD移动目录权限
<Directory /var/ftp/upload>
<Limit DELE RNFR RNTO RMD XRMD >
DenyUser skate
</Limit>
</Directory>
作者: 东方蜘蛛    时间: 2006-04-13 12:15
标题: How To Restrict FTP User To Their Home Directory
Step (1) - configure wu-ftpd with restricted home directory by modify
/etc/ftpd/ftpaccess file       

# vi /etc/ftpd/ftpaccess

Option (a) restriction apply to all or specific users
- change from
# guestuser        username

to
guestuser        *     # apply to all user

or
guestuser        [username] [username]   # apply to this user


Option (b) restriction apply to specific group of users
- append this line

guestgroup        [groupname] [groupname]        # apply to all users in this user group


Option (c) restriction apply to all users except specified users for exemption
- append these lines

guestuser        *
realuser        [username] [username]   # this user is exempted
realgroup        [groupname] [groupname] # this group of users are exempted

Step (2) restart inet services
# pkill -HUP inetd

[ 本帖最后由 东方蜘蛛 于 2006-4-13 12:16 编辑 ]
作者: worldmax    时间: 2006-04-14 17:01
6楼 , 你写的东西放在 哪里啊?是 ftpaccess 中吗?
7楼, 我不是要限制在HOME Directory 下,而是 别的目录




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2