問題 lpic-300-300-topic-1-question-5・第5版

問題

Sambaで、次の[printers]を印刷用の共有として定義する。空欄へ入る設定はどれか。

[printers]
    comment = All Printers
    path = /var/spool/samba
    browseable = no
    ____
  1. A 

    printcap name = cups

  2. B 

    printable = yes

  3. C 

    print script = /usr/bin/lp -d %P %s

  4. D 

    print admin = Administrator, root, @lpadmin

  5. E 

    load printers = yes

正解:B

理由

printable = yes

[printers]にはこの指定が必要である。

これは共有を印刷用として扱う設定であり、プリンター一覧の取得先や共有の一覧表示とは役割が違う。

選択肢ごとの説明

A.

printcap name = cups

プリンター一覧の取得先を指定する設定である。

B.

printable = yes

共有をプリンター用として扱う必須の設定である。

C.

print script = /usr/bin/lp -d %P %s

印刷ジョブの投入コマンドを設定する項目名はprint commandである。このprint scriptという指定はprintableの代わりにならない。

D.

print admin = Administrator, root, @lpadmin

印刷用共有を定義する項目はprintableである。

E.

load printers = yes

プリンター共有を読み込む設定であり、[printers]のprintable指定とは異なる。

参考資料

お問い合わせ

演習する →