LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   printer sharing on samba , please help (https://www.linuxquestions.org/questions/linux-newbie-8/printer-sharing-on-samba-please-help-4175494630/)

sachin.davra 02-12-2014 05:42 AM

printer sharing on samba , please help
 
i am trying to share a printer on samba so that windows users can print using my linux print server.
here is my smb.conf file

Code:

[global]

        workgroup = WORKGROUP
        server string = Samba Server Version %v

;      netbios name = MYSERVER
        netbios name = CUPS-PRINTING

;      interfaces = lo eth0 192.168.12.2/24 192.168.13.2/24
;      hosts allow = 127. 192.168.12. 192.168.13.
        interfaces = lo eth0 eth0:1
        hosts allow = 192.168.

# --------------------------- Logging Options -----------------------------
#
# Log File let you specify where to put logs and how to split them up.
#
# Max Log Size let you specify the max size log files should reach

        # logs split per machine
        log file = /var/log/samba/log.%m
        # max 50KB per log file, then rotate
        max log size = 50

# ----------------------- Standalone Server Options ------------------------
#
# Scurity can be set to user, share(deprecated) or server(deprecated)
#
# Backend to store user information in. New installations should
# use either tdbsam or ldapsam. smbpasswd is available for backwards
# compatibility. tdbsam requires no further configuration.

        security = user
        passdb backend = tdbsam

Code:

load printers = yes
        cups options = raw

        printcap name = printcap
        printing = cups
        security = share
        printcap name = /etc/printcap



Code:

  [printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = yes
        guest ok = yes
        read only = yes
        writable = no
        create mask = 0700
        printable = yes
        public = yes
        use client driver = yes
        guest account = print


when i access it on windows machine, i can't see my printer there.
for accessing printer i use
open Run --> \\CUPS-PRINTING
it opens up but doesn't show printer.
i have setup a user using smbpasswd. it's name is print
need help to configure it correctly so that it may work.

allend 02-12-2014 04:31 PM

Some comments on your smb.conf
Code:

load printers = yes
        cups options = raw
# The next line conflicts with a later line
;        printcap name = printcap
# The next line is the default so the next line is redundant
;        printing = cups
# The next line conflicts with the earlier setting of security = user
;        security = share
# The next line is the default so the next line is redundant
;        printcap name = /etc/printcap

Code:

  [printers]
        comment = All Printers
        path = /var/spool/samba
# The next line does not affect whether printers are viewable.
;        browseable = yes
        browseable = no
        guest ok = yes
# The next line is redundant
;        read only = yes
        writable = no
# The next line is redundant
;        create mask = 0700
        printable = yes
        public = yes
        use client driver = yes
# The next line should be moved up into the Global section
        guest account = print


sachin.davra 02-13-2014 12:27 AM

Quote:

Originally Posted by allend (Post 5116472)
Some comments on your smb.conf
Code:

load printers = yes
        cups options = raw
# The next line conflicts with a later line
;        printcap name = printcap
# The next line is the default so the next line is redundant
;        printing = cups
# The next line conflicts with the earlier setting of security = user
;        security = share
# The next line is the default so the next line is redundant
;        printcap name = /etc/printcap

Code:

  [printers]
        comment = All Printers
        path = /var/spool/samba
# The next line does not affect whether printers are viewable.
;        browseable = yes
        browseable = no
        guest ok = yes
# The next line is redundant
;        read only = yes
        writable = no
# The next line is redundant
;        create mask = 0700
        printable = yes
        public = yes
        use client driver = yes
# The next line should be moved up into the Global section
        guest account = print



Thnx sir,
it worked for me. Thnx for your time.


All times are GMT -5. The time now is 03:13 PM.