免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: dnvjgg
打印 上一主题 下一主题

NetApp Data ONTAP 上FTP无法访问 [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-03-25 10:50 |只看该作者
IBM O的?

论坛徽章:
0
12 [报告]
发表于 2009-03-25 11:19 |只看该作者
既然LZ不方便打电话,我转载一个供参考:)

一套Netapp 3020c,OS版本7.0.4,需要配置一个目录可以让int用户ftp登入,配置如下:
NAS3020c2*> options ftpd                     
ftpd.3way.enable             off        
ftpd.anonymous.enable        off        
ftpd.anonymous.home_dir      /vol/ftp/ftpdir
ftpd.anonymous.name          anonymous  
ftpd.auth_style              unix      
ftpd.dir.override            /vol/ftp/ftpdir
ftpd.dir.restriction         on         
ftpd.enable                  on         
ftpd.idle_timeout            900s       (value might be overwritten in takeover)
ftpd.locking                 none      
ftpd.log.enable              on         
ftpd.log.filesize            512k      
ftpd.log.nfiles              6         
ftpd.max_connections         500        (value might be overwritten in takeover)
ftpd.max_connections_threshold 0%         (value might be overwritten in takeover)
ftpd.tcp_window_size         28960      


ftpd.anonymous.enable 设置为on之后匿名用户可以登录,但是用useradmin user add增加的int用户无法登录,提示 login incorrect。

解决方法:
先找一台 7.2版的机器,在其上运行 cifs passwd abcdefg 命令(这里的abcdefg 是int用户的密码),会生成一串字符,这就是加密后的密码,将其放在Netapp的/etc/passwd文件 int用户后的第一个冒号后面。
再次登录,成功。
注:如/etc下没有passwd文件,也没关系,从其他Netapp上copy一个过来就OK啦。


---------------------------------------------------------------------------------
Netapp官方的建议做法,感觉还是上面的方法比较方便:
How to create an FTP user on a filer
Symptoms
Error message: FTP access denied
No FTP user information in the /etc/passwd file on the filer
create FTP user information in the /etc/passwd file on the filer
How to create an FTP user on a filer
Solution
Follow this step to create an FTP user on the filer:
1. Create a cifs shares to /vol/vol0
cifs shares -add volshare /vol/vol0
2. Map this share from windows and edit /etc/passwd file of the filer using wordpad
3. Create user on Unix machine , the steps to create user mbgtest is -#useradd mbgtest.
Copy paste the mbgtest string from /etc/passwd of Unix to Filer /etc/passwd.
Change the string to set the homedirectory and password as mentioned in step 4.
4. Add the following line at the end of the line in /etc/passwd file:
mbgtest:_J9..lHd5cGj3qdGTZhs:510:1::/home/mbgtest:
Note: Please follow the same format in the above line.
mbgtest ----- username
_J9..lHd5cGj3qdGTZhs ----- encrypted password for this username
510 ----- user id
1 ----- group id
/home/mbgtest ----- FTP home directory for the user.
Note: Change the parameters according to the system's configuration.
5. Save the /etc/passwd file. A password can be generated from the filer using the following
command:
cifs passwd <ASSWORD> (PASSWORD is the actual password)
The above command will give an encrypted password which looks like _J9..lHd5cGj3qdGTZhs.
Cut and paste this password to the above line in the /etc/password file.
6. Create an FTP home directory for the FTP user
7. Do an FTP from the Windows machine using the FTP user just created
For UNIX operating systems, a normal UNIX crypt(3) password entry can be used in the NetApp filer's
/etc/passwd file. This can be done using the filer's wrfile command to rewrite the /etc/passwd file. Note
that without an NFS or CIFS license, the only way to manage /etc files would be through telnet
(wrfile/rdfile) or FTP.
Last updated: 17 JAN 2007

[ 本帖最后由 justsowhat 于 2008-5-13 16:49 编辑 ]

[ 本帖最后由 xq10907 于 2009-3-25 11:32 编辑 ]

论坛徽章:
0
13 [报告]
发表于 2009-03-25 11:47 |只看该作者
(Data ONTAP Release 7.3: Thu Jul 24 16:04:45 PDT 2008 (IBM
)) ready

根据lz描述,肯定是IBM  O的了

期待正确答案

论坛徽章:
0
14 [报告]
发表于 2009-03-25 13:28 |只看该作者

回复 #10 dnvjgg 的帖子

/etc/password文件下面怎么没有我用useradmin新增加的用户名,是不是跟这个有关系
N3600A> rdfile /etc/passwd  
root::0:1::/:
pcuser::65534:65534::/:
nobody::65535:65535::/:
ftp::65533:65533:FTP Anonymous:/home/ftp:
N3600A>

我在里面新增了  administrator   dnvjgg   nx  三个用户

[ 本帖最后由 dnvjgg 于 2009-3-25 13:30 编辑 ]

论坛徽章:
0
15 [报告]
发表于 2009-03-25 15:10 |只看该作者

回复 #14 dnvjgg 的帖子

谁在用这个的,可不可以把/etc/passwd 的内容贴上来看看

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
16 [报告]
发表于 2009-03-25 15:13 |只看该作者
楼主解决了吗?

论坛徽章:
0
17 [报告]
发表于 2009-03-25 17:14 |只看该作者

回复 #16 无牙 的帖子

还没有。。找到SN号了。。准备打800

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
18 [报告]
发表于 2009-03-25 21:15 |只看该作者
弄好了把解决的方法贴上来。

论坛徽章:
0
19 [报告]
发表于 2009-03-25 22:58 |只看该作者
原帖由 无牙 于 2009-3-25 21:15 发表
弄好了把解决的方法贴上来。



就是, 大家等着学习冬瓜所谓的不好透露的问题嘛, 都一起看看会是啥情况, 遇到类似的问题多一个思路, 先谢了

论坛徽章:
1
CU十二周年纪念徽章
日期:2013-10-24 15:41:34
20 [报告]
发表于 2009-03-26 10:36 |只看该作者
互相学习,互相进步吗。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP