LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2014, 05:42 AM   #1
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Rep: Reputation: Disabled
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.
 
Old 02-12-2014, 04:31 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 4,539

Rep: Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419Reputation: 1419
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
 
1 members found this post helpful.
Old 02-13-2014, 12:27 AM   #3
sachin.davra
Member
 
Registered: Jul 2013
Posts: 213

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by allend View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sharing a printer using samba wastingtime Linux - Server 7 09-05-2008 10:05 AM
Sharing a printer using samba kponenation Fedora 1 11-15-2005 08:14 PM
Sharing Printer using Samba subaruwrx Linux - Software 2 03-22-2005 11:48 AM
Sharing printer through samba rejser Linux - Networking 12 05-21-2004 01:10 PM
Sharing Printer with Samba ritris Slackware 8 05-09-2003 09:40 PM


All times are GMT -5. The time now is 02:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration