Configure Banner in Printing
Aqbal Rail
aqbal at tech.fka.utm.my
Thu Feb 11 00:29:46 GMT 1999
Hi,
When I sent this mail yesterdays, I got complaint from a few guys that
wanted me to send this particular mail again in text mode...so here it
is.
Hi,
I have install Samba 2.0 in my Sun Ultra 5 runnig Solaris 2.6, and I
hope somebody can help me with my problem. The problem is ..it seems
that I can't make the Samba server (print server) stops printing
banner.
I have modified the smb.conf into :
print command=/bin/lp -d%p -c -o raw %s -o nobanner; /bin/rm -f
%s
but still the server keeps printing banner. I also have modified the
printer configuration into not printing banner in the admintool and it
also do no good either.
Along with this mail is attachments of my :
1) smb.conf
2) printers.conf ( printcap files)
Finally, thanks in advance for any help.
Cheers,
--
Aqbal Rail
Research
Department of Hydraulics and Hydrology
Fac. of Civil Engineering
University Technology Malaysia
Tel : 607 - 5576160 ext 3026
Email : aqbal at tech.fka.utm.my
-------------- next part --------------
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
workgroup = fka
guest ok = no
read only = no
create mode = 0777
read list = yes
# Below lines are added by Adam of AIS
lock directory = /usr/local/samba/var/locks
share modes = yes
# server string is the equivalent of the NT Description field
server string = Sunkamarul
# whether or not to allow browsing on the whole network
browseable = yes
# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
load printers = yes
# These printing options are REQUIRED for use with IRIX, Solaris, and HP-UX
printcap name = /etc/printers.conf
printing = sysv
lpq command=/bin/lpstat %p
lprm command=/bin/cancel %p-%j
# This print command options is RECOMMENDED for use with ESP Print
print command=/bin/lp -d%p -c -o raw %s -o nobanner; /bin/rm -f %s
# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
socket options = TCP_NODELAY IPTOS_LOWDELAY IPTOS_THROUGHPUT SO_KEEPALIVE SO_BROADCAST
# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
dns proxy = no
# Case Preservation can be handy - system default is _no_
# NOTE: These can be set on a per share basis
preserve case = yes
short preserve case = no
#============================ Share Definitions ==============================
[homes]
comment = Home Directories
guest ok = no
browseable = no
read only = no
create mode = 0777
writable = yes
# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
comment = All Printers
path = /var/tmp
browseable = no
# Set public = yes to allow user 'guest account' to print
guest ok = yes
writable = yes
printable = yes
public = yes
# This one is useful for people to share files
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes
# Below lines are added by Adam of AIS
[ShareKamarul]
path = /export/home/kamarul/sharedir
read only = no
guest account = nobody
guest ok = no
public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[public]
comment = Public Stuff
path = export/home/samba
public = yes
writable = yes
printable = yes
write list = @staff
# Other examples.
#
# A private printer, usable only by fred. Spool data will be placed in fred's
# home directory. Note that fred must have write access to the spool directory,
# wherever it is.
;[fredsprn]
; comment = Fred's Printer
; valid users = fred
; path = /homes/fred
; printer = freds_printer
; public = no
; writable = no
; printable = yes
# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
; comment = Fred's Service
; path = /usr/somewhere/private
; valid users = fred
; public = no
; writable = yes
; printable = no
# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
; comment = PC Directories
; path = /usr/pc/%m
; public = no
; writable = yes
# A publicly accessible directory, read/write to all users. Note that all files
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writable by the default user. Another user could of course
# be specified, in which case all files would be owned by that user instead.
;[public]
; path = /usr/somewhere/else/public
; public = yes
; only guest = yes
; writable = yes
; printable = no
# The following two entries demonstrate how to share a directory so that two
# users can place files there that will be owned by the specific users. In this
# setup, the directory should be writable by both users and should have the
# sticky bit set on it to prevent abuse. Obviously this could be extended to
# as many users as required.
;[myshare]
; comment = Mary's and Fred's stuff
; path = /usr/somewhere/shared
; valid users = mary fred
; public = no
; writable = yes
; printable = no
; create mask = 0765
-------------- next part --------------
#
# If you hand edit this file, comments and structure may change.
# The preferred method of modifying this file is through the use of
# lpset(1M) or fncreate_printer(1M)
#
6mp1:\
:bsdaddr=sunkamarul,6mp1,Solaris:\
:description=HP Laserjet 6MP - Both:
_default:\
:use=6mp1:
6mp2:\
:bsdaddr=sunkamarul,6mp2,Solaris:\
:description=HP Laserjet 6MP - Any:
More information about the samba
mailing list