[Samba] DNS server and printing.

Darin Bawden dbawden at teamdme.com
Wed Sep 25 13:31:01 GMT 2002


Joel,
Here are the conf files.  I was hesitant to post them, because of their 
lenghts.  However, seeing other posts, I don't see that as a problems.
Printcap file:

# /etc/printcap
#
# DO NOT EDIT! MANUAL CHANGES WILL BE LOST!
# This file is autogenerated by printconf-backend during lpd init.
#
# Hand edited changes can be put in /etc/printcap.local, and will be included.

Paper1:\
         :ml=0:\
         :mx=0:\
         :sd=/var/spool/lpd/Paper1:\
         :af=/var/spool/lpd/Paper1/Paper1.acct:\
         :sh:\
         :lp=|/usr/share/printconf/util/jetdirectprint:\
         :lpd_bounce=true:\
         :if=/usr/share/printconf/util/mf_wrapper:

Color1:\
         :ml=0:\
         :mx=0:\
         :sd=/var/spool/lpd/Color1:\
         :af=/var/spool/lpd/Color1/Color1.acct:\
         :sh:\
         :lp=|/usr/share/printconf/util/jetdirectprint:\
         :lpd_bounce=true:\
         :if=/usr/share/printconf/util/mf_wrapper:

###############################################################################
## Everything below here is included verbatim from /etc/printcap.local       ##
###############################################################################
# printcap.local
#
# This file is included by printconf's generated printcap,
# and can be used to specify custom hand edited printers.

Here's my smb.conf file:
# 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 made any basic syntactic errors.
#
#======================= Global Settings =====================================
[global]
         smb passwd file = /etc/samba/smbpasswd
         passwd program = /usr/bin/passwd %u
         pam password change = yes
         domain master = yes
         add user script = /usr/bin/adduser -d /dev/null -g 100 -s 
/bin/false -M %m$
         dns proxy = no
         encrypt passwords = yes
         show add printer wizard = yes
         status = yes
         socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
         printcap name = /etc/printcap
         max log size = 0
         preferred master = yes
         obey pam restrictions = yes
         passwd chat = *New*password* %n\n *Retype*new*password* %n\n 
*passwd:*all*authentication*tokens*updated*successfully*
         security = user
         domain admin group = @root
         domain logons = yes
         printer admin = @ntadmin
         unix password sync = Yes
         workgroup = TEAMDME
         server string = Linux Server
         local master = yes
         netbios name = Linux1
         log file = /var/log/samba/%m.log
         load printers = yes
         os level = 64

[homes]
    comment = Home Directories
    browseable = no
    writable = yes
    valid users = %S
    create mode = 0664
    directory mode = 0775

[Teamdme]
         path = /usr/teamdme
         comment = Teamdme Directory
         browseable = yes
         writable = yes
         create mode = 0777
         directory mode = 0777

#[test]
#       path = /usr/teamdme/test
##      comment = test directory
#       browseable = yes
#       writable = yes
#       create mode = 0775
#       directory mode = 0775

# [Spectrum.Liv]
#       path = /usr/teamdme/spectrum.liv
#       comment = Team5 Directory
#       writable = yes
#       create mode = 0664
#       directory mode = 0775
#       write list = @admins

# [Teamliv]
#       path = /usr/teamdme/teamliv
#       writable = yes
#       comment = TeamDME Windows Production
#       browseable = yes
#       create mode = 0777
#       directory mode = 0777

#[FAQS]
#       path = /usr/teamdme/faqs
#       comment = FAQ Directory
#       writable = yes
#       create mode = 0775
#       directory mode = 0775

#[Support]
#       path = /usr/teamdme/support
#       comment = Support Calls
#       writable = yes
#       create mode = 0775
#       directory mode = 0775
#       write list = @support

#[CVS]
#       path = /usr/teamdme/cvsroot
#       comment = CVS File Share
#       writable = yes
#       create mode = 775
#       directory mode = 775
#       write list = @programming

[Root]
         path = /
         writable = yes
         browseable = no
         create mode = 0775
         directory mode = 0775
         valid users = @root
         comment = Root share for Admin Purposes Only
         write list = @root

[print$]
         path = /usr/local/samba/printers
         guest ok = yes
         browseable = yes
         read only = yes
         write list = @ntadmin,root,dbawden

  [netlogon]
    comment = Network Logon Service
    path = /usr/local/samba/netlogon
    guest ok = yes
    writable = no
    share modes = no
;  logon script = startup.bat

# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
#[Profiles]
;    path = /home/%U
;    browseable = no
;    guest ok = yes
;    create mask = 0600
;    directory mask = 0700
;    read only = no

# NOTE: If you have a BSD-style print system there is no need to
# specifically define each individual printer
[printers]
         path = /var/spool/samba
         comment = All Printers
         browseable = no
         use client driver = yes
         printable = yes
         write list = dbawden

As for printer filters....I'm not sure if I'm using any (remember, I'm 
still a relative newbie at this).  Where would I look for that?

Darin

At 06:36 PM 9/23/2002, Joel Hammer wrote:
>Don't know much about Dos printing, but:
>What format do the dos client drivers deliver the print job to samba in?
>Just saying use client drivers doesn't mean your server won't try to filter
>it if it goes to the wrong queue, I THINK.
>What type of queue is accepting the print jobs on the samba server?
>
>Post:
>Your printcap file.
>The printer filter, if any.
>Your smb.conf file.
>The fact that the printer setup is being printed suggests that the job is
>not being formatted properly for your printer. After all, why doesn't the
>printer realize this is setup data and not your document?
>Joel
>
>On Mon, Sep 23, 2002 at 12:40:30PM -0500, Darin Bawden wrote:
> > Good afternoon,
> > This is my first post, so please be gentle  ;)
> > Anyway, here's my question....I've recently put together a Linux Server 
> for
> > our company, replacing an old Novel server.  I have the box set up with
> > Samba, as a PDC on our network.  So far, just about everything is working
> > correctly.
> >          One issue I'm coming up against, though, is printing from DOS.  I
> > have Samba set up to print with LPRNG, using the client drivers (reason 
> for
> > that is it keeps the default settings for each user on their machine.  If
> > there's a better way, than enlightenment would be great).  Anyway, the
> > problem we are having is, when printing from DOS, it's spitting out the
> > printer setup at the top of the first page and it's unformatted.  If need
> > be, I can send the conf file for review (I'm not sure which sections to
> > send).  Oh, and in case it hasn't shown yet, I've only been working with
> > Linux for about 18 months now.
> >          Second question isn't a problem, it's more of idle curiosity.  We
> > have a router set up at a 10.1.*.* address internally.  We used to have a
> > Citrix box that was the DHCP server.  we've received our DNS servers from
> > our provider, which I've plugged into the DHCP config file pointing out to
> > the external world.  What, if any benefits, would I receive if I were to
> > set up the Samba server to include DNS support?  But then again, is this
> > even a question I should be asking here!  LOL
> >
> > thanks in advance!
> >
> > Darin Bawden
> > dbawden at teamdme.com
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  http://lists.samba.org/mailman/listinfo/samba

Darin Bawden
TeamDME! Technical Support
(615) 333-1900 ext. 19
dbawden at teamdme.com





More information about the samba mailing list