問題
Sambaで、次の[printers]を印刷用の共有として定義する。空欄へ入る設定はどれか。
[printers]
comment = All Printers
path = /var/spool/samba
browseable = no
____
- A
printcap name = cups
- B
printable = yes
- C
print script = /usr/bin/lp -d %P %s
- D
print admin = Administrator, root, @lpadmin
- 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指定とは異なる。