プリンタへの匿名アクセス(anonymous access)を許可する場合、 リモートからのプリント指示を許可するためのユーザアカウントを作成する必要があります。
/usr/sbin/adduser --system --disabled-password smbprint |
Samba の設定ファイル名は /etc/samba/smb.conf です。 "smbprint" というユーザ名で CUPS を設定した場合の設定ファイル例を以下に示します。
[global] printcap name = cups printing = cups security = share [printers] browseable = yes printable = yes public = yes create mode = 0700 guest only = yes use client driver = yes guest account = smbprint path = /home/smbprint |
Samba 設定ファイルの編集ができたら、以下のコマンドで Samba を再起動してください。
/etc/init.d/samba restart |
application/octet-stream application/vnd.cups-raw 0 - |
また、/etc/cups/mime.types の次の行のコメントアウトも解除してください。
application/octet-stream |
次に、ネットワーク上の他のマシンからの接続を許可するよう CUPS を設定します。 以下の記述を /etc/cups/cupsd.conf に加えてください。
<Location /printers> AuthType None Order Deny,Allow Deny From None Allow From All </Location> |
/etc/init.d/cupsys restart |
これで Linux プリンタは LAN 上で Windows マシンと共有できます。Windows のプリンタ追加ウィザードでネットワークプリンタを追加し、テストページを 印刷してみてください。