約 2,343,476 件
https://w.atwiki.jp/ntaka206/pages/34.html
白山工業製LS-7000のftpサーバーは、lsコマンドで得られるファイルリストの形式が一般的なUNIX形式ではなくDOS形式である。cd コマンドに与えるパスの区切り文字も”\”である。このせいで、lftpなどのミラーリング機能を使ってデータ取得が出来ない。このftpサーバーに対応した、ftpミラーリングget用perlスクリプトを作った。 LS7000のftpサーバー 08-12-10 09 33AM 896 SET1.CNF 08-12-10 02 59PM 896 SET2.CNF 08-24-10 11 51AM 43712 TCAL.TXT 08-16-10 00 01AM DIR 100816 08-17-10 00 01AM DIR 100817 08-18-10 00 01AM DIR 100818 一般的なunixのftpサーバー -rw-r--r-- 1 ntaka ntaka 56785 Aug 2 11 14 hs_err_pid2384.log -rw-r--r-- 1 ntaka ntaka 42748 Jul 30 18 56 hs_err_pid2658.log -rw-r--r-- 1 ntaka ntaka 60322 Jul 30 13 35 hs_err_pid2978.log 今回はftpによるミラーリングをするために、CAPNからNet DownloadMirrorとNet MirrorDirモジュールを取得して使用している。Net MirrorDir- ReadRemoteDir()の書き換えで、LS7000のDOS形式ファイル一覧に対応させている。 ●ftpデータミラーリング取得プログラム mirror_wp.pl perlプログラム本体 このページ最下部からダウンロード可 DownloadMirror.pm ftpミラーリングモジュール CPANからgetしてmirror_wp.plと同じフォルダに保存 MirrorDir.pm ftpミラーリングモジュール CPANからgetしてmirror_wp.plと同じフォルダに保存 一部変更 複数台のLS-7000からデータ取得できるようになっている。前日1日分のデータを取得する。 ローカル側のファイルは、リモート側で無くなっても削除されない。 プログラムソースを書き換えれば、全てのデータを取得させることも出来る。$all = 1;にする。 ●MirrorDir.pmの修正箇所 sub ReadRemoteDir { my ($self, $dir) = @_; $dir ||= $self- {_remotedir}; return({}, {}) unless(eval { $Net MirrorDir _connection- cwd($dir); }); # LS7000にて CWD / するとinvalid argumentになるため # return({}, {}) unless($Net MirrorDir _connection- cwd()); $self- {_remotefiles} = {}; $self- {_remotedirs} = {}; $self- {_readremotedir} = sub { my ($self, $p) = @_; my (@info, $name, $np, $ra_lines); my $count = 0; until($ra_lines = $Net MirrorDir _connection- dir($p) || ++$count 3) { $self- Connect() unless($Net MirrorDir _connection- abort()); } if($self- {_debug}) { print("\nreturnvalues from dir($p) \n"); print("$_\n") for(@{$ra_lines}); } for my $line (@{$ra_lines}) { @info = split(/\s+/, $line); $name = $info[$#info]; next if($name eq . || $name eq .. ); $np = "$p/$name"; next if(grep { $np =~ $_ } @{$self- {_regex_exclusions}}); # LS7000 DOS形式ftp対応 if($line =~ m/ DIR /) { $self- {_remotedirs}{$np} = 1; $self- {_readremotedir}- ($self, $np); } else { $self- {_remotefiles}{$np} = 1 unless(@{$self- {_regex_subset}}); for(@{$self- {_regex_subset}}) { if($np =~ $_) { $self- {_remotefiles}{$np} = 1; last; } } } } # for # if($line =~ m/^-/) # { # $self- {_remotefiles}{$np} = 1 # unless(@{$self- {_regex_subset}}); # for(@{$self- {_regex_subset}}) # { # if($np =~ $_) # { # $self- {_remotefiles}{$np} = 1; # last; # } # } # } # elsif($line =~ m/^d/) # $self- {_remotedirs}{$np} = 1; # $self- {_readremotedir}- ($self, $np); # } # else # { # warn("error can not get info $line\n"); # } #} return($self- {_remotefiles}, $self- {_remotedirs}); }; return $self- {_readremotedir}- ($self, $dir); } ●CPANからgetしたモジュールの場所を調べるには? $ perldoc -ml Net MirrorDir /usr/local/share/perl/5.10.1/Net/MirrorDir.pm
https://w.atwiki.jp/kobapan/pages/237.html
NcFTP をインストール NcFTP Software Downloadから、NcFTP Clientをダウンロード。 $ tar xzf ncftp-3.2.5-src.tar.gz $ cd ncftp-3.2.5 $ ./configure $ make $ sudo make install これで、インストールされるコマンドは下記の通り。 ncftp ncftpbatch ncftpbookmarks ncftpget ncftpls ncftpput ncftpspooler ncftpgetで一括ダウンロード $ mkdir tmp $ cat EOF ftp.cfg host sample.jp user username pass userpassword EOF $ ncftpget -f ftp.cfg -R -V ./tmp /public_html/* リモートサーバのユーザホームにある public_html 内のすべてのディレクトリ・ファイルを再帰的にダウンロードし、./tmp ディレクトリ内に保存する。 -f ftp.cfg ホスト名・ユーザ名・パスワードは、ftp.cfg から読み込む -R 再帰的に -V 進捗を表示しない NcFTP Software Download ncftpget(1) manual page NcFTP Documentation Index
https://w.atwiki.jp/atsites/pages/46.html
FTPアップロードについての解説ページ
https://w.atwiki.jp/darum/pages/148.html
FTP経由で、ユーザがファイルのアップロードできません。 SELinuxをとめなきゃいけないらしい SELinux設定:FedoraCore4でvsftpdでアップロードできない問題を解決
https://w.atwiki.jp/parepan/pages/264.html
1.curlftpfsのインストール sudo apt-get update sudo apt-get install curlftpfs 2.マウントポイントの作成 sudo mkdir /mnt/ftpserver 3.マウントコマンド sudo curlftpfs ftp //user-id password@fpサーバのIP又はFQDN/ /mnt/ftpserver/ -o allow_other 転送速度はsshより早い 100Mのダミーファイルでの転送結果、5秒程度ftpの方が早かった。 以上です --------------------------------------------------------------------------------
https://w.atwiki.jp/it_certification/pages/164.html
1. 目的 2. 構成2.1. 設定概要 2.2. 構成図 2.3. netファイル 2.4. 初期設定 2.5. サーバ側 ルーティング設定 3. [検証] TFTPサーバの設定3.1. 設定投入 3.2. ルータからのGET 3.3. WindowsからのGET 4. [検証] FTPサーバの設定4.1. FTPの有効化 4.2. FTPユーザの作成 4.3. ルータからのGET 4.4. ルータからのGET 5. [検証] scpの設定5.1. rsa鍵の生成 5.2. AAAの定義 5.3. scpの有効化 5.4. Guest OS(Linux)からのファイル転送 5.5. WinSCPを用いたファイル転送 6. [補足] scpが使用するline6.1. lineの確認 6.2. VTYに対する認証認可設定 7. [補足] FTPのバグ?7.1. IOS バージョン 7.2. 症状 1. 目的 ルータ間でファイル転送を行う方法を確認します。 ルータをTFTPサーバとして使用する方法を確認します。 ルータをFTPサーバとして使用する方法を確認します。 scpを用いてルータにファイルを転送する方法を確認します。 2. 構成 2.1. 設定概要 OSPFによってルーティングを定義します。 2.2. 構成図 2.3. netファイル ghostios = True sparsemem = True model = 2620 [localhost] [[2620]] image = C \Program Files\Dynamips\images\c2600-advsecurityk9-mz.123-12.bin ram = 128 [[ROUTER R1]] f0/0 = NIO_gen_eth \Device\NPF_{8B89D910-5ED3-4A43-9DE9-6A272A3D7592} f1/0 = R2 f1/0 [[ROUTER R2]] f0/0 = NIO_gen_eth \Device\NPF_{5933302A-7AAA-475C-A8FE-A6B82B0C0F98} 2.4. 初期設定 R1 ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ip cef ! ! ! ip audit po max-events 100 no ip domain lookup no ftp-server write-enable ! ! ! ! ! ! ! interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface FastEthernet0/0 ip address 192.168.200.1 255.255.255.0 duplex auto speed auto ! interface FastEthernet1/0 ip address 192.168.12.1 255.255.255.0 duplex auto speed auto ! router ospf 1 log-adjacency-changes passive-interface default no passive-interface FastEthernet1/0 network 192.168.12.1 0.0.0.0 area 0 network 192.168.200.1 0.0.0.0 area 0 ! ip classless ip http server no ip http secure-server ! no cdp run ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end R2 ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 ! boot-start-marker boot-end-marker ! ! memory-size iomem 15 no aaa new-model ip subnet-zero ip cef ! ! ! ip audit po max-events 100 no ip domain lookup no ftp-server write-enable ! ! ! ! ! ! ! interface FastEthernet0/0 ip address 192.168.201.2 255.255.255.0 duplex auto speed auto ! interface FastEthernet1/0 ip address 192.168.12.2 255.255.255.0 duplex auto speed auto ! router ospf 1 log-adjacency-changes passive-interface default no passive-interface FastEthernet1/0 network 192.168.12.2 0.0.0.0 area 0 network 192.168.201.2 0.0.0.0 area 0 ! ip classless ip http server no ip http secure-server ! no cdp run ! ! ! line con 0 line aux 0 line vty 0 4 ! ! end 2.5. サーバ側 ルーティング設定 Host OS route add 192.168.12.0 mask 255.255.255.0 192.168.200.1 Guest OS route add -net 192.168.12.0/24 gw 192.168.201.2 3. [検証] TFTPサーバの設定 3.1. 設定投入 ルータをTFTPサーバとして使用するためには、以下の通り公開したいファイルを指定します。 R1(config)#tftp-server system running-config 3.2. ルータからのGET R1からR2へのファイル転送を試みます。R2で以下のように入力し、R1のrunning-configを取得します。 R2#copy tftp //192.168.12.1/running-config flash r1-config Destination filename [r1-config]? Accessing tftp //192.168.12.1/running-config... Erase flash before copying? [confirm]n Loading running-config from 192.168.12.1 (via FastEthernet1/0) ! [OK - 930 bytes] Verifying checksum... OK (0x920B) 930 bytes copied in 3.160 secs (294 bytes/sec) R2# 取得したファイルが表示できる事を確認します。 R2#more flash r1-config ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 3.3. WindowsからのGET R1からHost OSへのファイル転送を試みます。コマンドプロンプトで以下のように入力し、R1のrunning-configを取得します。 C \ tftp 192.168.200.1 GET running-config r1-config Transfer successful 930 bytes in 2 seconds, 465 bytes/s C \ 取得したファイルが表示できる事を確認します。 C \ more r1-config ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 4. [検証] FTPサーバの設定 4.1. FTPの有効化 以下の入力を行い、FTPサーバの設定を行います。FTPサーバを有効にし、トップディレクトリを定義します。 R1(config)#ftp-server enable R1(config)#ftp-server topdir flash 4.2. FTPユーザの作成 FTP接続する際のユーザとパスワードを作成します。 R1(config)#ip ftp username cisco R1(config)#ip ftp password cisco123 4.3. ルータからのGET R1, R2間のファイル転送を試みます。R2で以下のように入力し、ファイルの送受信が可能な事を確認します。 R2#copy running-config ftp //cisco@192.168.12.1/r2-config Address or name of remote host [192.168.12.1]? Destination filename [r2-config]? Writing r2-config ! 811 bytes copied in 4.200 secs (193 bytes/sec) R2# R2# R2#copy ftp //192.168.12.1/r2-config flash r2-config Destination filename [r2-config]? Accessing ftp //192.168.12.1/r2-config... Erase flash before copying? [confirm]n Loading r2-config ! [OK - 811/4096 bytes] Verifying checksum... OK (0x829E) 811 bytes copied in 0.536 secs (1513 bytes/sec) R2# 送受信したファイルが表示できる事を確認します。 R2#more flash r2-config ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R2 4.4. ルータからのGET R1, Host OS間のファイル転送を試みます。コマンドプロンプトで以下のように入力し、ファイルの送受信が可能な事を確認します。 C \ ftp ftp open 192.168.200.1 Connected to 192.168.200.1. 220 R1 IOS-FTP server (version 1.00) ready. User (192.168.200.1 (none)) cisco - ユーザ「cisco」を入力します。 331 Password required for cisco . Password - パスワード「cisco123」を入力します。 230 Logged in. ftp ftp ftp put r1-config 200 PORT command successful. 150 Opening ASCII mode data connection for r1-config. 226 Transfer complete. ftp 996 bytes sent in 0.00Seconds 996000.00Kbytes/sec. ftp ftp ftp get r1-config r1-config.bak 200 PORT command successful. 150 Opening ASCII mode data connection for r1-config (996 bytes). 226 Transfer complete. ftp 996 bytes received in 0.00Seconds 996000.00Kbytes/sec. ftp ftp quit 221 Goodbye. C \ 送受信したファイルが表示できる事を確認します。 C \ more r1-config.bak ! version 12.3 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname R1 5. [検証] scpの設定 5.1. rsa鍵の生成 scpを使用するためには、rsa鍵が必要です。以下の通りhost名(定義済み)とdomain名を定義し、rsa鍵を生成します。 R1(config)#ip domain-name cisco.com R1(config)#crypto key generate rsa The name for the keys will be R1.cisco.com Choose the size of the key modulus in the range of 360 to 2048 for your General Purpose Keys. Choosing a key modulus greater than 512 may take a few minutes. How many bits in the modulus [512] 1024 % Generating 1024 bit RSA keys ...[OK] R1(config)# *Mar 1 00 38 31.763 %SSH-5-ENABLED SSH 1.5 has been enabled R1(config)# 5.2. AAAの定義 認証認可をローカルデータベースで行うように設定し、privilege 15 ユーザを作成します。 R1(config)#aaa new-model R1(config)#aaa authentication login default local R1(config)#aaa authorization exec default local R1(config)#username aroyna privilege 15 password tabeta 5.3. scpの有効化 scpを有効にします。 R1(config)#ip scp server enable 5.4. Guest OS(Linux)からのファイル転送 以下の要領で、Guest OSからR1へのファイル転送ができる事を確認します。 [root@localhost ~]# echo "test" hoge.txt [root@localhost ~]# [root@localhost ~]# scp hoge.txt aroyna@192.168.12.1 /hoge.txt The authenticity of host 192.168.12.1 (192.168.12.1) can t be established. RSA1 key fingerprint is 7b 56 53 1d 43 58 0c 27 01 fb 98 89 c1 a9 c7 92. Are you sure you want to continue connecting (yes/no)? yes Warning Permanently added 192.168.12.1 (RSA1) to the list of known hosts. aroyna@192.168.12.1 s password - パスワード「tabeta」を入力します。 hoge.txt 100% 8955 8.8KB/s 00 00 [root@localhost ~]# 5.5. WinSCPを用いたファイル転送 Host OS上のWinSCPを使ったファイル転送も試みましたが、さすがにWinSCPは無理なようです。どうやら、BASHを使えるホストとしか通信できないツールのようです。 6. [補足] scpが使用するline 6.1. lineの確認 Guest OSからR1へのファイル転送を行いますが、わざとパスワードを入力しない状態で留めておきます。 [root@localhost ~]# scp hoge.txt aroyna@192.168.12.1 /hoge.txt aroyna@192.168.12.1 s password R1でlineを表示させると、scpはVTY lineを設定する事が理解できます。 R1#show line Tty Typ Tx/Rx A Modem Roty AccO AccI Uses Noise Overruns Int * 0 CTY - - - - - 0 1 0/0 - 65 AUX 9600/9600 - - - - - 0 0 0/0 - * 66 VTY - - - - - 7 0 0/0 - 67 VTY - - - - - 0 0 0/0 - 68 VTY - - - - - 0 0 0/0 - 69 VTY - - - - - 0 0 0/0 - 70 VTY - - - - - 0 0 0/0 - Line(s) not in async mode -or- with no hardware support 1-64 R1# 6.2. VTYに対する認証認可設定 scpはVTY lineを用いて行われるため、実際は以下のようにVTYに対してのみ認証認可の設定を行えばscpによるファイル転送ができるようになります。 R1(config)#no aaa authorization exec default local R1(config)#no aaa authentication login default local R1(config)# R1(config)# R1(config)#aaa authorization exec EXEC_VTY local R1(config)#aaa authentication login LOGIN_VTY local R1(config)#line vty 0 4 R1(config-line)#login authentication LOGIN_VTY R1(config-line)#authorization exec EXEC_VTY 7. [補足] FTPのバグ? 7.1. IOS バージョン 不具合らしき動作をしたIOSのバージョンは以下の通りです。 R1#show version Cisco IOS Software, C2600 Software (C2600-IPBASEK9-M), Version 12.4(21), RELEASE SOFTWARE (fc1) Technical Support http //www.cisco.com/techsupport Copyright (c) 1986-2008 by Cisco Systems, Inc. Compiled Thu 10-Jul-08 01 21 by prod_rel_team ROM ROMMON Emulation Microcode ROM C2600 Software (C2600-IPBASEK9-M), Version 12.4(21), RELEASE SOFTWARE (fc1) R1 uptime is 1 minute System returned to ROM by unknown reload cause - suspect boot_data[BOOT_COUNT] 0x0, BOOT_COUNT 0, BOOTDATA 19 System image file is "tftp //255.255.255.255/unknown" 7.2. 症状 FTPのユーザ・パスワードは定義できるものの、FTPを有効にする事ができません。 R1(config)#ip ftp username cisco R1(config)#ip ftp password cisco123 R1(config)# R1(config)#ftp-server ? % Unrecognized command R1(config)#ftp-server ^Z
https://w.atwiki.jp/darum/pages/29.html
#blognavi FTPソフト・・・といっても、wu-ftpdとかProFTPDとかの話ではなくて、Windows用のClientの話。 いいのないですかね? ずっと、FFFTP使ってたんですけど、いまいち使いづいらいなぁっていうのがあって、 パソコンの入れ替えを機に、TidyFTPってのに変えてみたんですが、起動時のディレクトリ指定の点で難があったり。 一発でエクスプローラ開いてほしいなとか、要望があったり。 そんなんでなかなかすべてを満足してくれるFTPソフトに出会えないのです。 希望としてはエクスプローラのような操作性で、シェアウェアでもいいかなとか思うけど、お金払わなくても機能的な制限がないやつがいいなぁと。 誰かいい情報があったら教えてください。 カテゴリ [日記] - trackback- 2005年06月14日 10 51 37 自分はNextFTP使ってます。 -- Nightmare (2005-06-15 03 47 30) コメントキター!! -- darum (2005-06-15 18 00 42) NextFTP -- darum (2005-06-16 23 03 34) 金払う価値あるかな? -- darum (2005-06-16 23 03 49) 名前 コメント #blognavi
https://w.atwiki.jp/bioeos/pages/131.html
2011-6-7 FTP,OpenLayersのインストール ubuntuのアップデート VMwareを立ち上げます。 まずは、システムのシステム管理にあるアップデート・マネージャを起動して、ubuntuを最新の状態にしましょう。 もしくは、アプリケーションのアクセサリから端末を立ち上げて、 sudo apt-get update と入力してください。 このとき端末上に無視やヒットを表示されます。 この無視は最新の状態であるか、サーバ自体がなくなっている場合です。 ヒットは更新する必要があるソフトである場合です。 また、更新するアプリケーションのサーバがどこに存在するのかを調べます。 cd /etc/apt le -al そうすると、sources.listというファイルが存在するので less sources.list #終わらすときはqを押してEnter これで、下図のように表示されます。 これらが、アップデートの時に表示されているものの大元がどこにあるかを書いています。 FTP(File Transfer Protocol)のインストール FTPとはサーバー間などのネットワークでファイルのファイルの転送を行えるようにするツールです。 まずubuntu側にFTPをインストールします。 システムのシステム管理にあるsynapticパッケージマネージャを起動させます。 検索でFTPと入力します。 そうすると下のほうにvsftpdがあるので、インストール指定して、適用をクリックし、インストールします。 ※vsftpdとはオープンソースのFTPサーバでFTPを使用して、ファイルの送受信を行うサーバです。 パッケージマネージャは閉じておいてください。 いまからwindows側で作業をします。VWwareを最小化しておいてください。 FFFTPをダウンロードします。以下のサイトをクリックして、下図の赤線で囲ってあるDOWNLOADをクリックして、ダウンロードしてください。 http //www.forest.impress.co.jp/lib/inet/servernt/ftp/ffftp.html ffftp-1.97b.exeを起動させてFFFTPをインストールします。 このとき、いろいろ聞かれますが、気にせず次へ進めていけばインストールできます。 ※FFFTPとは、オープンソースのFTPクライアントのことで、FTPを使用してファイルの送受信を行うクライアントソフトウェアのことです。FTPサーバに接続してファイルをアップロード・ダウンロードすることができます。 OpenLayersのダウンロード 以下のサイトをクリックして、Latest stable releaseの[.zip]をクリックして、ダウンロードしてください。(今回はデスクトップに保存しました) http //trac.osgeo.org/openlayers/wiki/HowToDownload ※OpenLayersは、地図を表示するためのJavaScriptライブラリです。QGISなどで作った地図もWMSレイヤにすることでブラウザ上に表示できます。 FTPを使用してOpenLayersをwindowsからubuntuにコピーする VWware(ubuntu)に戻ってください。OpenLayersをコピーする前にVMware側のFTPサーバの設定をします。 アプリケーションのアクセサリから端末を立ち上げてください。 sudo nano /etc/vsftpd.conf これで、vsftpd.confの中をメモ帳と同じような形式で、下図のように端末に表示させます。 その中の #write_enable=YES (28) #xferlog_file=/var/log/vsftpd.log (67) #ascii_upload_enable=YES (96) #ascii_download_enable=YES (97) #chroot_local_user=YES (111) ※後ろの()は行数です これらの#を消して、chroot_local_user=YESのYESをNOに変えてください。 変更がすんだらCtrl + oで保存して、Ctrl + xで終了してください。 ただし、このままでは、vsftpdは保存した状態ではなく、保存前の状態なので、更新します。 sudo service vsftpd status #vsftpdの現在の状態の確認 sudo service vsftpd stop #vsftpdの動作の停止 sudo service vsftpd start #vsftpdの起動 sudo service vsftpd restart #stopとstartを同時にする これで、vsftpdが更新された状態になりました。 今から、windows側で作業をしますが、その前に端末で以下のように入力してください。 ifconfig すると、上図のように表示されます。 上図の赤い線で囲ってある部分の数字(192.168…)を控えておいてください。 windows側に移ってください。 FFFTPを起動させます。 起動時に表示される、ホスト一覧の新規ホストを選択し、下図のように設定し、接続します。 ※パスワードはubuntuのパスワード そして、下図のような状態にして、赤丸の部分から、OpenLayersのある場所とOpenLayersを置きたい場所に移動し、OpenLayers(zip形式)をドラッグ・アンド・ドロップしてください。 これで、VMwareのダウンロードにコピーできました。 VMware側に戻ります。 端末で cd ダウンロード ls で下図のようにOpenLayersがzip形式であるので、解凍します。 unzip OpenLayers-2.10.zip ls これで解凍完了です。 解凍したOpenLayers-2.10を移動させます。 sudo mv OpenLayers-2.10 /var/www cd /var/www ls これで移動が完了しました。 バージョンが変わると、設定し直さなくてはいけないので、その対策のためにリンクを作ります。 sudo ln -s OpenLayers-2.10 ol ls -al ※olはOpenLayersの略 これで、リンクが出来ました。 おまけ 端末から ps ux と入力すると、下図のように今ユーザでは何が動いているかを表示します。(ps auxにすると全体の場合を表示します) gnome-terminalのプロセス番号を入力すると、現在表示しているすべての端末が消えます。 kill -9 端末のプロセス番号 これは、便利な機能ですが、データを壊したりもできるので、使い方には気をつけてください。 今回はここまでです。 お疲れ様でした。
https://w.atwiki.jp/coraljapan/pages/23.html
2007年12月07日 (金) 15時57分18秒; Windows Server 2003で、FTPサーバーを設定する。 ※あらかじめ、IISをインストールする。 1 既定の FTP サイトのプロパティで、仮想ディレクトリを新規作成する。 2 フォルダを設定する。 エイリアス→フォルダ名 パス→フォルダを設定 アクセス許可→読み書きオン 3 FTPクライアントを設定して、テストする。 ※クライアントのユーザ名はanonymousで設定。 anonymous設定にしたくない場合は、 ・既定の FTP サイトのプロパティで匿名接続許可をチェック外す。 ・クライアントのユーザ情報は、サーバーのログオンユーザー情報を入力する。 名前 コメント
https://w.atwiki.jp/mynote/pages/65.html
vsftp vsftpd.confの設定 # Example config file /etc/vsftpd/vsftpd.conf # # The default compiled in settings are fairly paranoid. This sample file # loosens things up a bit, to make the ftp daemon more usable. # Please see vsftpd.conf.5 for all compiled in defaults. # # READ THIS This example file is NOT an exhaustive list of vsftpd options. # Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd s # capabilities. # # Allow anonymous FTP? (Beware - allowed by default if you comment this out). anonymous_enable=YES # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form of FTP write command. write_enable=YES # # Default umask for local users is 077. You may wish to change this to 022, # if your users expect that (022 is used by most other ftpd s) local_umask=022 # # Uncomment this to allow the anonymous FTP user to upload files. This only # has an effect if the above global write enable is activated. Also, you will # obviously need to create a directory writable by the FTP user. #anon_upload_enable=YES # # Uncomment this if you want the anonymous FTP user to be able to create # new directories. #anon_mkdir_write_enable=YES # # Activate directory messages - messages given to remote users when they # go into a certain directory. dirmessage_enable=YES # # Activate logging of uploads/downloads. xferlog_enable=YES # # Make sure PORT transfer connections originate from port 20 (ftp-data). connect_from_port_20=YES # # If you want, you can arrange for uploaded anonymous files to be owned by # a different user. Note! Using "root" for uploaded files is not # recommended! #chown_uploads=YES #chown_username=whoever # # You may override where the log file goes if you like. The default is shown # below. #xferlog_file=/var/log/vsftpd.log # # If you want, you can have your log file in standard ftpd xferlog format xferlog_std_format=YES # # You may change the default value for timing out an idle session. #idle_session_timeout=600 # # You may change the default value for timing out a data connection. #data_connection_timeout=120 # # It is recommended that you define on your system a unique user which the # ftp server can use as a totally isolated and unprivileged user. #nopriv_user=ftpsecure # # Enable this and the server will recognise asynchronous ABOR requests. Not # recommended for security (the code is non-trivial). Not enabling it, # however, may confuse older FTP clients. #async_abor_enable=YES # # By default the server will pretend to allow ASCII mode but in fact ignore # the request. Turn on the below options to have the server actually do ASCII # mangling on files when in ASCII mode. # Beware that turning on ascii_download_enable enables malicious remote parties # to consume your I/O resources, by issuing the command "SIZE /big/file" in # ASCII mode. # These ASCII options are split into upload and download because you may wish # to enable ASCII uploads (to prevent uploaded scripts etc. from breaking), # without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be # on the client anyway.. #ascii_upload_enable=YES #ascii_download_enable=YES # # You may fully customise the login banner string #ftpd_banner=Welcome to blah FTP service. # # You may specify a file of disallowed anonymous e-mail addresses. Apparently # useful for combatting certain DoS attacks. #deny_email_enable=YES # (default follows) #banned_email_file=/etc/vsftpd.banned_emails # # You may specify an explicit list of local users to chroot() to their home # directory. If chroot_local_user is YES, then this list becomes a list of # users to NOT chroot(). #chroot_list_enable=YES # (default follows) #chroot_list_file=/etc/vsftpd.chroot_list # # You may activate the "-R" option to the builtin ls. This is disabled by # default to avoid remote users being able to cause excessive I/O on large # sites. However, some broken FTP clients such as "ncftp" and "mirror" assume # the presence of the "-R" option, so there is a strong case for enabling it. #ls_recurse_enable=YES pam_service_name=vsftpd userlist_enable=YES #enable for standalone mode listen=YES tcp_wrappers=YES