一套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。
--------------------------------------------------------------------------------- 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 theWindows machine using the FTP user just created For UNIX operating systems, a normal UNIX crypt(3) password entry can be usedin 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