免费注册 查看新帖 |

Chinaunix

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

关于Solaris下anonymous登陆ftp的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2005-11-24 17:41 |只看该作者 |倒序浏览
# uname -a
SunOS unknown 5.10 Generic sun4u sparc SUNW,Ultra-60

# ftpconfig -D /anonymous

/annoymous 自动创建出来,
同时目录下有
# ls -al anonymous
总数 18
drwxr-xr-x   8 root     sys          512 11月 24日 14:56 .
drwxr-xr-x  38 root     root        1024 11月 24日 14:56 ..
lrwxrwxrwx   1 root     bin            9 11月 24日 14:56 bin -> ./usr/bin
d--x--x--x   2 root     sys          512 11月 24日 14:56 dev
d--x--x--x   5 root     sys          512 11月 24日 14:56 etc
d--x--x--x   2 root     bin          512 11月 24日 14:56 lib
d--x--x--x   3 root     sys          512 11月 24日 14:56 platform
drwxr-xr-x   2 root     sys          512 11月 24日 14:56 pub
d--x--x--x   6 root     sys          512 11月 24日 14:56 usr
#

然后
ftp 168.192.1.205
  Connected to 168.192.1.205.
    220 unknown FTP server ready.
  Name (168.192.1.205:gavin): anonymous
    331 Guest login ok, send your complete e-mail address as password.
  Password:                // 这里试过 anonymous ,  anonymous@company.com,  随便一个email
    530 Login incorrect.
    Login failed.

都不成功。。。

不是说Solaris 9 + 以后设置 anonymous的ftp 用ftpconfig就可以自动搞定吗?

有没有大虾遇见过这个问题?有解决办法吗?
谢谢!

论坛徽章:
0
2 [报告]
发表于 2005-11-24 17:56 |只看该作者
ftpconfig  /anonymous

测试过可以。
OPTIONS
     -d       Create a new or update an existing  ftpdir  without
              creating or updating the ftp user account. Use this
              option when creating guest FTP user accounts.

论坛徽章:
0
3 [报告]
发表于 2005-11-24 17:59 |只看该作者
# ftpconfig /snow/ftphome
Creating user ftp
Creating directory /snow/ftphome
Updating directory /snow/ftphome
# more /etc/passwd
。。。。。。
ftp:199350:1:Anonymous FTP:/snow/ftphome:/bin/true
#

论坛徽章:
0
4 [报告]
发表于 2005-11-24 20:09 |只看该作者
我再次执行
ftpconfig /anonymous

报错,说adduser错误,请察看pwconv

然后我直接用
snowict提供的
ftp::199350:1:Anonymous FTP:/snow/ftphome:/bin/true
加到 /etc/passwd 后面
然后执行 pwconv

Bingo!OK了!
谢谢Snowict
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP