Configuring and Managing MPE/iX Internet Services (July 2001)
102 Chapter7
Samba for MPE/iX Services
Samba for MPE/iX Configuration File Options
Configuring a Printer Section for Printer Sharing
The PCs can access the server side printer using Samba for MPE/iX.
With printer sharing the client creates a file on the server directory
associated with the printer, and then lets the server process trigger a
configurable command to push the file into the MPE spooler.
The
[printers] section works in conjunction with the printcap file and
allows you to configure a large number of printer shares without having
to add separate detailed sections for each of them. The Samba server
can work for both LP and network printers. The printer names and
option aliases are listed in the printcap file.
Here is an example of printer names in the samp-printcap file which
resides in /usr/local/samba/lib:
samp-printcap file:
LP|6|HP3000 System LP
Here is a example for the configuration option that you may configure
with
[global] and [printers] sections in the Samba for MPE/iX
configuration file — smb-conf:
[global]
# You need to supply IP address and subnet mask of your HP e3000 with the
interface parameter
interface = ip address/subnet mask
# printcap file lists printer names for use by [printer] section
printcap name = /usr/local/samba/lib/printcap
# shares may be configured to accept connections without a validated user id
and password, and it then assumes the guest logon for accessing the printers.
guest account = mgr.samba
[printers]
# enable this service for printing but not for file access
print ok = yes
write ok = no
# current version of Samba for MPE/iX only allows guest users for printer
sharing
guest ok = yes
guest only = yes
# the “staging” directory for print requests
path = /user/local/samba/spool
# The rawlp utility sends file contents to spooler like “lp -oraw”
print command = /usr/local/samba/lib/rawlp %s %p; rm %s