Page 1 of 5 123 ... LastLast
Results 1 to 10 of 42

Thread: I've got Samba 1/2 working, Please help with Printing

  1. #1
    Join Date
    Jun 2009
    Location
    NJ - USA
    Posts
    45

    Default I've got Samba 1/2 working, Please help with Printing

    I have openSUSe v11.1 Kernel 2.6.27.29.01 running Samba v3.2.7-11 and CUPS v1.3.9 as a VMware Workstation 6.5.3 Host. Both VMware Guests and other Windows PCs can see both see and use my Samba file shares.

    Printing is another story:
    From the Windows VMware Guests and other Windows PCs DOS prompts "NET VIEW \\IP address" I see both the file share and the printer. From add new printer browsing will not see the printer, but it does see the server. Manually entering the printer "\\ip address\hpofficejetk80xi" creates the printer but it doesn't work.

    Print jobs just disappear. Not in the guest Windows queue of the CUPS queue.

    Here is my smb.conf file.

    [global]
    workgroup = VMWWG
    name resolve order = bcast host lmhosts wins
    local master = yes
    preferred master = yes
    os level = 33
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    disable spoolss = Yes
    show add printer wizard = No
    map to guest = Bad User
    include = /etc/samba/dhcp.conf
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    domain logons = No
    domain master = No
    null password = yes
    passdb backend = smbpasswd
    security = share
    wins support = Yes

    [sharedfiles]
    comment = Files on VMware Host
    inherit acls = Yes
    path = /files/
    read only = No

    [printers]
    comment = All Printers
    path = /var/spool/samba
    printable = Yes
    use client driver = Yes
    create mask = 0600
    browseable = Yes
    Bobby
    openSUSE Very Dangerous Novice User

  2. #2
    Join Date
    Jun 2008
    Location
    The English Lake District. UK - GMT/BST
    Posts
    36,857
    Blog Entries
    20

    Default Re: I've got Samba 1/2 working, Please help with Printing

    Tumbleweed_KDE
    My Articles Was I any help? If yes: Click the star below

  3. #3
    Join Date
    Jun 2009
    Location
    NJ - USA
    Posts
    45

    Default Re: I've got Samba 1/2 working, Please help with Printing

    That document seemed great. I had several things in both my CUPSd.conf and smb.conf that didn't match. Same thing is wrong, but here is my new configs.


    [global]
    workgroup = VMWWG
    name resolve order = bcast host lmhosts wins
    local master = yes
    preferred master = yes
    os level = 33
    printing = cups
    printcap name = cups
    printcap cache time = 750
    cups options = raw
    load printers = yes
    disable spoolss = Yes
    show add printer wizard = No
    map to guest = Bad User
    domain logons = No
    domain master = No
    passdb backend = smbpasswd
    security = share
    wins support = Yes

    [sharedfiles]
    comment = Files on VMware Host
    inherit acls = Yes
    path = /files/
    read only = No

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


    LogLevel info
    SystemGroup sys root
    # Allow remote access
    Port 631
    Listen /var/run/cups/cups.sock
    # Show shared local printers on the local network.
    Browsing On
    BrowseOrder allow,deny
    BrowseAllow @LOCAL
    BrowseAddress @LOCAL
    DefaultAuthType Basic
    # Restrict access to the server...
    <Location />
    Order Deny,Allow
    Deny From All
    Allow From 127.0.0.1
    Allow From 127.0.0.2
    #Allow From @LOCAL
    Allow From 192.168.0.*
    </Location>
    <Location />
    Allow 127.0.0.2
    # Allow shared printing...
    Order allow,deny
    Allow @LOCAL
    </Location>
    <Location /admin>
    Encryption Required
    # Restrict access to the admin pages...
    Order allow,deny
    </Location>
    <Location /admin/conf>
    AuthType Default
    Require user @SYSTEM
    # Restrict access to the configuration files...
    Order allow,deny
    </Location>
    <Policy default>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
    </Limit>
    <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
    </Limit>
    <Limit All>
    Order deny,allow
    </Limit>
    </Policy>
    DefaultPolicy default
    <Policy easy>
    <Limit All>
    Satisfy any
    Order allow,deny
    </Limit>
    </Policy>
    <Policy paranoid>
    <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER
    Allow from 127.0.0.0/8
    Order deny,allow
    </Limit>
    <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Allow from 127.0.0.0/8
    Order deny,allow
    </Limit>
    <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Allow from 127.0.0.0/8
    Order deny,allow
    </Limit>
    <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER
    Allow from 127.0.0.0/8
    Order deny,allow
    </Limit>
    <Limit All>
    Require user @OWNER @SYSTEM
    Allow from 127.0.0.0/8
    Order deny,allow
    </Limit>
    </Policy>
    Bobby
    openSUSE Very Dangerous Novice User

  4. #4
    PV NNTP User

    Default Re: I've got Samba 1/2 working, Please help with Printing

    On Wed September 23 2009 12:46 am, bobcal2000 wrote:

    >
    > That document seemed great. I had several things in both my CUPSd.conf
    > and smb.conf that didn't match. Same thing is wrong, but here is my new
    > configs.
    >
    >
    > [global]
    > workgroup = VMWWG
    > name resolve order = bcast host lmhosts wins
    > local master = yes
    > preferred master = yes
    > os level = 33
    > printing = cups
    > printcap name = cups
    > printcap cache time = 750
    > cups options = raw
    > load printers = yes
    > disable spoolss = Yes
    > show add printer wizard = No
    > map to guest = Bad User
    > domain logons = No
    > domain master = No
    > passdb backend = smbpasswd
    > security = share
    > wins support = Yes
    >
    > [sharedfiles]
    > comment = Files on VMware Host
    > inherit acls = Yes
    > path = /files/
    > read only = No
    >
    > [printers]
    > comment = All Printers
    > path = /var/tmp
    > printable = Yes
    > use client driver = Yes
    > create mask = 0700
    > browseable = Yes
    > guest ok = Yes
    >
    >
    > LogLevel info
    > SystemGroup sys root
    > # Allow remote access
    > Port 631
    > Listen /var/run/cups/cups.sock
    > # Show shared local printers on the local network.
    > Browsing On
    > BrowseOrder allow,deny
    > BrowseAllow @LOCAL
    > BrowseAddress @LOCAL
    > DefaultAuthType Basic
    > # Restrict access to the server...
    > <Location />
    > Order Deny,Allow
    > Deny From All
    > Allow From 127.0.0.1
    > Allow From 127.0.0.2
    > #Allow From @LOCAL
    > Allow From 192.168.0.*
    > </Location>
    > <Location />
    > Allow 127.0.0.2
    > # Allow shared printing...
    > Order allow,deny
    > Allow @LOCAL
    > </Location>
    > <Location /admin>
    > Encryption Required
    > # Restrict access to the admin pages...
    > Order allow,deny
    > </Location>
    > <Location /admin/conf>
    > AuthType Default
    > Require user @SYSTEM
    > # Restrict access to the configuration files...
    > Order allow,deny
    > </Location>
    > <Policy default>
    > <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
    > Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
    > Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
    > Suspend-Current-Job Resume-Job CUPS-Move-Job>
    > Require user @OWNER @SYSTEM
    > Order deny,allow
    > </Limit>
    > <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
    > CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    > AuthType Default
    > Require user @SYSTEM
    > Order deny,allow
    > </Limit>
    > <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
    > Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
    > Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
    > Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs
    > CUPS-Reject-Jobs>
    > AuthType Default
    > Require user @SYSTEM
    > Order deny,allow
    > </Limit>
    > <Limit CUPS-Authenticate-Job>
    > Require user @OWNER @SYSTEM
    > Order deny,allow
    > </Limit>
    > <Limit All>
    > Order deny,allow
    > </Limit>
    > </Policy>
    > DefaultPolicy default
    > <Policy easy>
    > <Limit All>
    > Satisfy any
    > Order allow,deny
    > </Limit>
    > </Policy>
    > <Policy paranoid>
    > <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job
    > Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription
    > Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job
    > Suspend-Current-Job Resume-Job CUPS-Move-Job>
    > Require user @OWNER
    > Allow from 127.0.0.0/8
    > Order deny,allow
    > </Limit>
    > <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer
    > CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    > AuthType Default
    > Require user @SYSTEM
    > Allow from 127.0.0.0/8
    > Order deny,allow
    > </Limit>
    > <Limit Pause-Printer Resume-Printer Enable-Printer Disable-Printer
    > Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs
    > Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer
    > Startup-Printer Promote-Job Schedule-Job-After CUPS-Accept-Jobs
    > CUPS-Reject-Jobs>
    > AuthType Default
    > Require user @SYSTEM
    > Allow from 127.0.0.0/8
    > Order deny,allow
    > </Limit>
    > <Limit Cancel-Job CUPS-Authenticate-Job>
    > Require user @OWNER
    > Allow from 127.0.0.0/8
    > Order deny,allow
    > </Limit>
    > <Limit All>
    > Require user @OWNER @SYSTEM
    > Allow from 127.0.0.0/8
    > Order deny,allow
    > </Limit>
    > </Policy>
    >
    >

    bobcal2000;

    Have you installed the printer drivers on the clients?
    See also:
    http://opensuse.swerdna.org/susesambaprint_1.html
    For more help you might try just:
    http://opensuse.swerdna.org/index.html
    which will give you a number of Swerdna's HowTos.

    If you are using IPP printing then Samba does not come into play. Just in
    case, try disabling firewalls on both opensuse and the client for testing.
    Your firewall settings may be the cause of problems and you will need to
    adjust their settings

    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  5. #5
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: I've got Samba 1/2 working, Please help with Printing

    Try adding this line into [global]:
    Code:
    use client driver = yes
    Why did you put in this line?
    Code:
     disable spoolss = Yes
    If there was no particular reason, I'd take it out.

    and

    Did you intend to set the openSUSE server as a "wins server" or is the network a standard SOHO LAN / workgroup arrangement? If you didn't intend for a wins server, then you should take out this line:
    Code:
    wins support = yes
    Finally, there are three or four sorts of printer server configurations. Are you trying to follow any particular protocol?
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  6. #6
    Join Date
    Jun 2009
    Location
    NJ - USA
    Posts
    45

    Default Re: I've got Samba 1/2 working, Please help with Printing

    What is the best method of resolution? I don't like having things running, like a wins server. I'd rather use a LMLosts file, where do I put them on Linux and Windows? How do I know if WINS is running and permanently stop it?
    Bobby
    openSUSE Very Dangerous Novice User

  7. #7
    Join Date
    Jun 2009
    Location
    NJ - USA
    Posts
    45

    Default Re: I've got Samba 1/2 working, Please help with Printing

    As far as "disable spoolss = Yes" I have used three different docs to get this to do what I want, so it was one of them. I'll take it out.. I have "use client driver = yes"

    What about "path = /var/tmp" is this correct? I have seen /var/samba" as a path here.

    Thanks for the tips
    Bobby
    openSUSE Very Dangerous Novice User

  8. #8
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: I've got Samba 1/2 working, Please help with Printing

    A barrage
    Quote Originally Posted by bobcal2000 View Post
    What is the best method of resolution?
    They're all good. Broadcast name resolution is the win98/me/2000/xp standard. To use a Linux Preferred Local Master Browser with Broadcast name resolution is very good
    Quote Originally Posted by bobcal2000 View Post
    I'd rather use a LMLosts file, where do I put them on Linux and Windows?
    See this tutorial for lmhosts: HowTo Configure Samba openSUSE Windows Network Browsing on a SOHO LAN

    Quote Originally Posted by bobcal2000 View Post
    How do I know if WINS is running and permanently stop it?
    It's running if you put this line in the [global] stanza:
    Code:
    wins support = yes
    To stop it? Remove the line and restart the Samba daemons.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  9. #9
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,731
    Blog Entries
    2

    Default Re: I've got Samba 1/2 working, Please help with Printing

    Quote Originally Posted by bobcal2000 View Post
    As far as "disable spoolss = Yes"................. I'll take it out..
    OK
    What about "path = /var/tmp" is this correct? I have seen /var/samba" as a path here
    /var/tmp exists in openSUSE
    /var/samba doesn't exist

    Thanks for the tips
    You're welcome.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  10. #10
    Join Date
    Jun 2009
    Location
    NJ - USA
    Posts
    45

    Default Re: I've got Samba 1/2 working, Please help with Printing

    I created "/var/samba" and set the permitions like I read in one of the docs I have.

    Of the three or four CUPS protocols, I want to run the RUNALLTIME protocol, the one that works all the time. One I can follow a document and set it up. The file sharing went so smoothly, that is why printing is so much trouble. Don't take this wrong, I appreciate everyone's input. Of the three docs, one book and the poeple on this thread, I have been told to add, more, or remove the same commands. For the file sharing I used one doc Samba and Suse: HowTo Set up on openSUSE. It was step-by-step and it worked, but it didn't cover printing.

    If you know the CUPS protocols pick one for me that will work on openSUSE Host; Windows VMware guests and other Windows PCs that you have a HowTo document for that works. The one the first gentleman sent me didn't work.

    Again as always
    Thanks!
    Bobby
    openSUSE Very Dangerous Novice User

Page 1 of 5 123 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •