レス
元トピ次レス
タイトル
Re: 問題ID:30523 教えてください。
フォーラム
最強WEB問題集LinuC/LPIC Lv2 202
投稿ユーザ(投稿日)
(2020/4/15)
本文
https://linuxjm.osdn.jp/html/tcp_wrappers/man5/hosts_access.5.html
sambaのhosts allow/denyもhosts_accessの仕組みを利用していて、manによると「allow の記述は deny の記述より先 に検索され、その検索は最初にマッチしたもので終了となり、マッチし たものが全く見つからない場合には、アクセスは承認される、というこ とをはっきりと理解しておくことが重要である。」とあるので、「192.168.2.100」もallowされる。という理解で正しいかと思います。

原文では「When reading the examples below it is important to realize that the allow table is scanned before the deny table, that the search terminates when a match is found, and that access is granted when no match is found at all.」となっています。

この問題の場合、他の選択肢があまりにも間違っているので、消去法的に選択肢は決まりますが、疑問に持たれている通り、allowを修正した場合は、denyに192.168.2.100を記載する必要はありません。

レス一覧

元トピ次レス


Ping-tモバイルTOP

Copyright (c) 2010
Ping-t All rights reserved.