Re: Unable to print from Windows Vista Laptop via Samba



James, do you see through smb (\\server-computer) the "printers" share ?
If you do, can you see the printer listed ? (Camaleón somehow asked you the same question)  .

Try running # smbclient -L server-computer to see all shares listed by the server .

Check if your printer is listed on /etc/printcap .


Last resort, install swat and point your browser to http://server-computer:901 to see what shows up .

Pablo

Thanks Pablo, I'll try that if I can't get it to work through samba.

Problem seems to be with the config file not picking up the printing declaration. I have restarted samba after editting the file.

Testparm gives me the following
[global]
    workgroup = ETHICSGRADIENT
    server string = %h server
    interfaces = lo, eth0
    obey pam restrictions = Yes
    pam password change = Yes
    passwd program = /usr/bin/passwd %u
    passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
    unix password sync = Yes
    syslog = 0
    log file = /var/log/samba/log.%m
    printcap name = cups
    dns proxy = No
    wins support = Yes
    panic action = "" %d

[homes]
    comment = Home Directories
    valid users = %S
    create mask = 0700
    directory mask = 0700
    browseable = No

[printers]
    comment = All Printers
    path = /var/spool/samba
    create mask = 0700
    guest ok = Yes
    printable = Yes
    use client driver = Yes
    browseable = No

[print$]
    comment = Printer Drivers
    path = /var/lib/samba/printers

but if you actually look at the config file;
 Hawaiian:/etc/samba# grep = smb.conf | grep -v \# | grep -v \;
   workgroup = EthicsGradient
   server string = %h server
   wins support = yes
   dns proxy = no
   interfaces = lo eth0
   log file = /var/log/samba/log.%m
   max log size = 5000
   syslog = 0
   panic action = "" %d
security = user
   encrypt passwords = true
   passdb backend = tdbsam
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
 load printers = yes
   printing = cups
   printcap name = cups
   comment = Home Directories
   browseable = no
   read >    create mask = 0700
   directory mask = 0700
   valid users = %S
   comment = All Printers
   browseable = no
   path = /var/spool/samba
   printable = yes
   guest ok = yes
   read >    writeable = no
   create mask = 0700
   useclient driver = yes
   comment = Printer Drivers
   path = /var/lib/samba/printers
   browseable = yes
   read >    guest ok = no

printing and load printers are clearly defined. Bit confused so could do with some advice on this?
Thanks,
Jim



2011/2/15 Pablo Sánchez <pablos@xxxxxxxxxxxxx>
James, i usually use ipp (internet printing protocol) to print on cups from windows , skipping samba alltogether.

Just map the printer over http://printerhost:631/printers/PrinterName .

Bear in mind that you can create a raw print spool , o have the real driver of the printer.
In the first case you install the driver printer on your pc an then install the printer over http.

Remember to share the printer on cups.

Regards.

Pablo


Hi,
I have a debian server running samba connected to a local USB printer. I also have a dual boot laptop with windows Vista on it.
I can print fine from the server and the linux side of the laptop using CUPS, and even though I can see my home directory via samba in Vista, I can't get it to detect any printers. Vista is on the same Workgroup, I've lowered the firewall, but still windows won't detect it.

An Nmap from the laptop shows ports 22,25,80,111,139,445,631 and 2049(all tcp) open.

My Samba config is at the bottom, any advice would be greatly appreciated.
Thanks,
Jim

[global]
   workgroup = ETHICSGRADIENT
   server string = %h server
   interfaces = lo, eth0
   obey pam restrictions = Yes
   pam password change = Yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   unix password sync = Yes
   syslog = 0
   log file = /var/log/samba/log.%m
   printcap name = cups
   dns proxy = No
   wins support = Yes
   panic action = "" %d

[homes]
   comment = Home Directories
   valid users = %S
   create mask = 0700
   directory mask = 0700
   browseable = No

[printers]
   comment = All Printers
   path = /var/spool/samba
   create mask = 0700
   guest ok = Yes
   printable = Yes
   use client driver = Yes
   browseable = No

[print$]
   comment = Printer Drivers
   path = /var/lib/samba/printers



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/4D59C501.1080806@xxxxxxxxxxxxx



-- To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx Archive: http://lists.debian.org/4D5BD26B.2050907@xxxxxxxxxxxxx


Relevant Pages

  • Re: How to config a Samba-Server as a PDC for the actual subnet?
    ... I want to configure a Samba-Server only for the subnet, ... I only have to set the parameter "domain browser = ... > The following is the smb.conf global section from a working Samba PDC... ... >; logon script ...
    (comp.protocols.smb)
  • Re: [opensuse] How to get samba working?
    ... use the same password as the windows password for the user and the login ... writing in the samba directory itself, then make all subdirectories 0775 so ... change the wins server IP to your linux box IP. ... When prompted for a driver, ...
    (SuSE)
  • Re: How to use samba using LDAP user authentication on RHEL5?
    ... Samba version 3.0.28-1.el5_2.1 ... # values are share, user, server, domain and ads. ... # Browser Control Options: ... # per user logon script ...
    (linux.redhat)
  • Re: FC1 Printer sharing only works with Win98
    ... >> I assume that you are trying to share this printer via Samba? ... > # server string is the equivalent of the NT Description field ... > # Browser Control Options: ... > # set local master to no if you don't want Samba to become a master ...
    (Fedora)
  • Re: Unable to print from Windows Vista Laptop via Samba
    ... James, i usually use ipp to print on cups from windows, skipping samba alltogether. ... In the first case you install the driver printer on your pc an then install the printer over http. ... I can print fine from the server and the linux side of the laptop using CUPS, and even though I can see my home directory via samba in Vista, I can't get it to detect any printers. ...
    (Debian-User)