No.17486 投稿時間:2004年10月09日(Sat) 22:08 投稿者名:remon URL:http://goo.mu
先日の問題はルータが原因でした。ありがとうございました。
FTPを外部から設定するためにhosts.allowファイルを編集していたのですが、
手違いでSSHを終了してしまったらファイルが破損してしまったみたいで、
hosts.allowファイルを編集しようとするとエラーメッセージが表示されてしまいます
--------------
E325: ATTENTION
Found a swap file by the name ".hosts.allow.swp"
owned by: root dated: Sat Oct 9 19:42:47 2004
file name: /etc/hosts.allow
modified: YES
user name: root host name: 192.168.0.2
process ID: 19399
While opening file "hosts.allow"
dated: Sat Oct 9 21:58:21 2004
NEWER than swap file!
(1) Another program may be editing the same file.
If this is the case, be careful not to end up with two
different instances of the same file when making changes.
Quit, or continue with caution.
(2) An edit session for this file crashed.
If this is the case, use ":recover" or "vim -r hosts.allow"
to recover the changes (see ":help recovery").
If you did this already, delete the swap file ".hosts.allow.swp"
to avoid this message.
"hosts.allow" 8L, 226C
Hit ENTER or type command to continue
--------------
エラーメッセージがあっても編集が出来るのでかまわないのですが、なんとなく気になってしまいます。
このメッセージを消すにはどうしたらいいでしょうか?
よろしくお願いします。
No.17488 投稿時間:2004年10月09日(Sat) 23:51 投稿者名:おやじ URL:http://www.aconus.com/~oyaji/
> If you did this already, delete the swap file ".hosts.allow.swp"
> to avoid this message.
現在支障がないなら、書いてある通り swp ファイルを削除すればいいだけです。
# rm /etc/.hosts.allow.swp
でおしまい。
No.17495 投稿時間:2004年10月10日(Sun) 16:40 投稿者名:remon URL:http://goo.mu
メッセージ一応読んだつもりだったんですけど…。解読できなかったみたいです。
ありがとうございました。