HP-UX HB v13.00 Ch-20 - CIFS

HP-UX Handbook Rev 13.00 Page 26 (of 40)
Chapter 20 CIFS
October 29, 2013
Printer driver upload within Samba
To configure printers and uploadable printer drivers for HP CIFS server you would at first create
a [printers] share to provide the printers known by the server (e.g. via lpstat). Be sure the path
has a valid path that is accessable. To configure a [printers] share you would edit the
/etc/opt/samba/smb.conf file:
[printers]
path = /var/opt/samba/tmp
printable = yes
browseable = no
This share is required if you want the printer's list to be displayed in SWAT which is not defined
in the smb.conf file, but exists on the HP CIFS Server. If this share is not defined, the printer list
will display only those printer-shares which are defined in the smb.conf file. The path is only a
suggestion you may as well simply use /tmp or /var/tmp. The path /var/opt/samba/tmp does
not yet exist, you need to create it:
mkdir /var/opt/samba/tmp
To setup CIFS version A.01.08 (Samba2.2.x)or later for automatically uploading of printer
drivers to a PC client you need the following setup. The account used to connect to the Samba
server must have a uid of "0" (ie. a root account) or it must be a member of the "printer admin"
list.
This will require a [global] smb.conf parameter as follows:
[global]
printer admin = ntadmin
Make sure you have the printer admin defined properly in the global section of the smb.conf
and added the user to smbpasswd file. Use smbstatus to make sure you are logged in as
root. If you have an outstanding IPC$ connection to the server, you may find that you aren't
getting logged on as expected.
Now create a [print$] share in the smb.conf file that points to the directory
/etc/opt/samba/printers on the HP CIFS Server:
[print$]
path = /etc/opt/samba/printers
browseable = yes
guest ok = yes
read only = yes
write list = ntadmin
In this example, the parameter "write list" specifies that the user accounts with administrative
level have write access to update files on the share.
In order for the HP CIFS Server to support the downloading or uploading of multiple client