Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1977137
  • 博文数量: 346
  • 博客积分: 10221
  • 博客等级: 上将
  • 技术积分: 4079
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-01 19:43
文章分类

全部博文(346)

文章存档

2012年(1)

2011年(102)

2010年(116)

2009年(127)

我的朋友

分类: 服务器与存储

2010-07-31 00:26:39

一套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 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
阅读(2979) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~