Prev | Current Page 1286 | Next

Christopher Negus

"Linux Bible, 2008 Edition: Boot up to Ubuntu, Fedora, KNOPPIX, Debian, openSUSE, and 11 Other Distributions"

conf file.
708
Running Servers Part V
Configuring a Shared Samba Printer
Your Linux printers can be configured as shared SMB printers. To share your printer as though it
were a Samba (SMB) printer, simply configure basic Samba server settings as described in Chapter 27.
All your printers should be shared on your local network by default. The next section shows what
the resulting settings look like and how you might want to change them.
Understanding smb.conf for Printing
When you configure Samba, the /etc/samba/smb.conf file is constructed to enable all of your
configured printers to be shared. Here are a few lines from the smb.conf file that relate to printer
sharing:
printcap name = /etc/printcap
load printers = yes
printing = cups
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
[printers]
comment = All Printers
path = /var/spool/samba
browseable = yes
writeable = no
printable = yes
These example settings are the result of configuring Samba from the Samba Server Configuration
window in Fedora. The lines show that printers from /etc/printcap were loaded and that the
CUPS service is being used. Password encryption is on, and the /etc/samba/smbpasswd file
stores the encrypted passwords. Because password sync is on, each user??™s Samba password is
synchronized with the user??™s local UNIX password.


Pages:
1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298