[Samba] Weird problem connecting W2k workstation to domain

John Seo juseo at scripps.edu
Mon Mar 22 22:18:30 GMT 2004

Hi all,

I'm using Samba 3.0.2a and after fussing around a bit, I got a W2k client
machine to join the domain.  My original need to have this setup was to
create printer accounting so I put in a print command (see below) in the
printers section.  Unfortunately, the accounting file wasn't written to.
Then I ran testparm -v and noticed there was a 'print command' field in
the global section which was just set to the default.  Then I proceeded to
add my print command to the global section.  When I restarted samba and
tried to login from the windows machine, it said the profile was missing.
After fumbling around a bit, I opened Network Neighborhood and everything
on the server was a printer, including the profiles and the home dir.
shares.  The problem is that even though I've tried to go back to an
earlier set up of samba(back up of smb.conf), windows still sees
everything as printers.  Below is my smb.conf as it is right now.


John Seo

        workgroup = AMI-PRINT
        interfaces =
        security = user
        encrypt passwords = Yes
        null passwords = Yes
        smb passwd file = /etc/samba/smbpasswd
        server signing = auto
        log level = 6
        log file = /var/log/samba/%m
        client use spnego = No
        logon path = \\%L\profiles\%u\%m
        logon drive = M:
        logon home = \\%L\%u\.win_profile\%m
        domain logons = Yes
        os level = 255
        preferred master = Yes
        domain master = Yes
        ldap ssl = no
        hosts allow =,,,
        hosts deny = ALL
        printing = lprng
        load printers = Yes
        printcap name = /etc/printcap
        printer admin = sheehan
        veto files = /*.eml/*.nws/riched20.dll/*.{*}/

        comment = Network Logon Service
        path = /usr/local/samba/var/netlogon
        browseable = No

        comment = Network Profiles Service
        path = /usr/local/samba/var/profiles
        read only = No
        create mask = 0600
        directory mask = 0700
        browseable = No

        comment = Home Directories
        read only = No
        browseable = No

        comment = All Printers
        path = /var/tmp
        create mask = 0600
        printable = Yes
        print command = echo "PRINTER:'%p' USERNAME:'%U' CLIENT:'%M'
FILE:'%J' CACHE:'/var/spool/samba/%s' TIME:'%T'" >> /var/log/acct.samba;
lpr -P%p %s
        browseable = No

More information about the samba mailing list