免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2425 | 回复: 7
打印 上一主题 下一主题

如何设置FTP [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-06 14:35 |只看该作者 |倒序浏览
solaris 9 操作系统

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

如何做?

谢谢

论坛徽章:
0
2 [报告]
发表于 2006-04-06 16:13 |只看该作者

proftp

简单实用,网上的教程很多的!

论坛徽章:
0
3 [报告]
发表于 2006-04-06 16:18 |只看该作者
网上好像都是只能限制在 HOME 目录下 ,在ftpaccess中加上 restricted-uid  username。

我不是要限制在HOME目录下,比如 我只能让 user1 用户访问 /abc/xyz 目录,怎么做?

论坛徽章:
0
4 [报告]
发表于 2006-04-06 16:22 |只看该作者
没有做过,回去做个实验!

论坛徽章:
0
5 [报告]
发表于 2006-04-07 16:33 |只看该作者
有人知道吗?

论坛徽章:
0
6 [报告]
发表于 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>

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
7 [报告]
发表于 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 编辑 ]

论坛徽章:
0
8 [报告]
发表于 2006-04-14 17:01 |只看该作者
6楼 , 你写的东西放在 哪里啊?是 ftpaccess 中吗?
7楼, 我不是要限制在HOME Directory 下,而是 别的目录
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP