Antwort: [Samba] Printerassistent.

Stefan.Iven at voessing.de Stefan.Iven at voessing.de
Wed Nov 19 07:04:11 GMT 2003





Hello,
>
>> I set up Samba as an PDC.
>> I generated shares and printershares.
>> I browsed my network over the Networkneighborhood down to my
Sambaserver.
>> There I can see all File and Printershares.
>> I doubleclicked
>
>Which client Win OS are you using?

Client OS from Win NT 4.0 SP6a,W2K SP3/4, XP SP?

>> the printerfolder where I then can see only shared printers
>> and one folder calld new printer.
>> I then rightclicked a shared printer and went to the process for
uploading
>> the printerdriver in the Sambaserver.
>> So far so good. Everything is ok. No errors
>>
>> Now i will install the printer on the client machine.
>>
>> One way is to  browse the Networkneighborhood.
>> So I browsed one folder up, there where I can see printer- and
fileshares.
>> I rightclick the printer for wich I first installed the drivers in the
>> server and choosed connect.
>> The drivers were downloaded from the server and printer is installed an
the
>> client.
>> The client is able to print correctly.
>>
>> Browsing the Network is one way to install a printer on a client.
>
>And this is the recomended way in the HOWTO....

Yes, i read your HOWTO.

>> An other way to install a printer on a client is to use the
controlpanal.
>>
>
>Well, at least in the HOWTO this is nowhere recommended... (It is even in
>a pure MS Windows environment a much slower way to do it, if you have
>more than a few dozen PCs and printers...)
>
>This doesn't say that there might not be a bug with that part of the
>Samba-Code, however...)

OK, but since I installed Samba3 -> Samba3pre3, I noticed, that application
get problems when changing the printer within the application.
An example: If I try choos Print in PowerPoint,Excel,Autocad or Coreldraw,
and I then try to change the printer, it tooks a long time till the new
printer is excepted. In pre2 the applications crashed.
So I thought, that I try to find out, what different I have made between
Samba2 and 3. And the only thing I could find is, that I can't see my PDC
when I try to install a printer over the controlpanel.


>
>> So I clicked the startbutton on the client, went to the controlpanel,
>> clicked Printers, clicked Add new Printer,
>> choosed Networkprinter, left the printername empty to search for the
>> printer, clicked continue button,
>> and then --> there I can see the domain, some clients wich belong to the
>> domain and wich offers printer,
>> but not my samba server.

You'd need to post your smb.conf (minus comments) to get more advice
on that....

Here it is :

# Samba config file created using SWAT
# from 192.168.135.103 (192.168.135.103)
# Date: 2003/11/15 15:01:46

# Global parameters
[global]
        unix charset = ISO8859-1
        workgroup = IBV
        server string = Datei- und Druckserver Frankfurt
        passdb backend = ldapsam:ldap://localhost:389
        printcap name = CUPS
        add user script = /usr/bin/smbldap-useradd.pl -a %u
        delete user script = /usr/bin/smbldap-userdel.pl %u
        add group script = /usr/bin/smbldap-groupadd.pl %g
        delete group script = /usr/bin/smbldap-groupdel.pl %u
        add user to group script = /usr/bin/smbldap-groupmod.pl -m %u %g
        delete user from group script = /usr/bin/smbldap-groupmod.pl -x %u
%g
        set primary group script = /usr/bin/smbldap-usermod.pl -g gid %u
        add machine script = /usr/bin/smbldap-useradd.pl -w %u
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        ldap suffix = dc=voes,dc=de
        ldap machine suffix = ou=computer
        ldap user suffix = ou=benutzer
        ldap group suffix = ou=gruppen
        ldap idmap suffix = dc=voes,dc=de
        ldap admin dn = cn=ldmin,dc=voes,dc=de
        ldap ssl = no
        write list = root
        printer admin = root
        create mask = 0777
        directory mask = 0777
        map acl inherit = Yes
        inherit permissions = Yes
        inherit acls = Yes
        printing = cups
        print command = lpr -r -oraw -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j

[netlogon]
        path = /daten/netlogon
        admin users = root
        browseable = No

[profile]
        path = /daten/profiles
        read only = No
        guest ok = Yes

[print$]
        path = /var/lib/samba/drivers
        admin users = root
        read only = No
        create mask = 0664
        map acl inherit = No
        strict locking = No

[printers]
        path = /tmp
        printable = Yes
        browseable = No
        printing = cups
        print command = lpr -r -oraw -P%p %s
        lpq command = lpq -P%p
        lprm command = lprm -P%p %j

[netlogon]
        path = /daten/netlogon
        admin users = root
        browseable = No

[profile]
        path = /daten/profiles
        read only = No
        guest ok = Yes

[print$]
        path = /var/lib/samba/drivers
        admin users = root
        read only = No
        create mask = 0664
        map acl inherit = No
        strict locking = No

[printers]
        path = /tmp
        printable = Yes
        browseable = No

[top]
        path = /daten
        read only = No

[CAD_Verm]
        comment = CAD- und Vermessungsdaten
        writeable = yes
        path = /daten/daten/CAD_Verm



Thanks Stefan


More information about the samba mailing list