Monday, March 31, 2008

Samba for printing !!!

Step 1: Add smb to services
system-config-services
Add service "smb"
Check auto start, and start service

Step 2: Open port in firewall
system-config-securitylevel
Check Trusted services "Samba"

Step 3: Configure samba service
vi /etc/samba/smb.conf

[global]
workgroup =
server string = Samba Server Version %v
passdb backend = tdbsam
printcap name = cups
printing = cups
cups options = raw

[homes]
comment = Home Directories
read only = No
browseable = No

[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
lpq command = lpq -P%p
lprm command = lprm -P%p %j
use client driver = Yes
browseable = No

Step 4: Add users
use smbpasswd -a to add user to samba

More info:
http://www.samba.org/samba/docs/Samba-HOWTO-Collection.pdf
http://www.samba.org/samba/docs/Samba-Guide.pdf
http://www.linuxquestions.org/questions/linux-networking-3/samba-client-access-denied-unable-to-connect-122851/

No comments: