免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5093 | 回复: 0

[RAID与磁盘阵列] Netapp FAS存储配置FTP [复制链接]

论坛徽章:
0
发表于 2008-05-13 16:42 |显示全部楼层
一套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 <PASSWORD> (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 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP