Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: CUPS SMB printing doesn't work 11.4

  1. #1

    Default CUPS SMB printing doesn't work 11.4

    I can't get printing to my windows server to work w/ 11.4.
    I've set it up w/out any issue for years w/ v 10.something, 11, 11.2, etc..

    First of all, the logs tell me:
    Unable to execute /usr/lib/cups/backend/smb: insecure file permissions

    That's actually a link to another file, and I fixed the error by removing the read rights on it. But now I still can't print.

    Now I get
    Printer stopped due to backend errors; please consult the error_log file for details

    I've removed everything having to do w/ samba and cups and printing and re-installed it all.. and then I get the same original insecure permissions errors.
    So, are other people having trouble? Fresh install and can't print to windows.

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

    Default Re: CUPS SMB printing doesn't work 11.4

    There's a Samba bug in 11.4. A fix is on the way. In the menatime goto Yast --> AppArmor and disable app armor. Then goto Yast -- System --> runlevels and enable the nmb and smb daemons.

    Then reboot
    Then set up the printer again.
    [of course, you might be suffering some other problem, but take this bug out of contention first.]
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  3. #3

    Default Re: CUPS SMB printing doesn't work 11.4

    Unfortunately I've already done that.. (had to get other SMB stuff working to get my computer joined to my domain, so disabled app armor for that). Hopefully it's still somehow related.. I had file security issues while setting up SMB too.. but don't remember if that was before or after disabling app armor. That's (file sharing/domain membership) at least working now.

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

    Default Re: CUPS SMB printing doesn't work 11.4

    That's got me beat. Hopefully someone else will suggest something.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  5. #5
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: CUPS SMB printing doesn't work 11.4

    On Wed March 23 2011 03:06 pm, swerdna wrote:

    >
    > That's got me beat. Hopefully someone else will suggest something.
    >
    >

    wicked1;

    I upgraded a OpenSuSE 11.2 server to 11.4 ( both x86_64)and Samba to 3.5.8.

    The cups smb backend was in /usr/lib64/cups/backend and I needed to create a
    link in /usr/lib/cups/backend to /usr/bin/smbspool
    Code:
    ln -s /usr/bin/smbspool /usr/lib/cups/backend/smb
    The permissions on smbspool are:
    Code:
    venXXX@fermat:/usr/bin> ls -l smbspool
    -rwxr-xr-x 1 root root 3512992 Mar 18 11:52 smbspool
    I'm not sure this has much to do with your problem, but I thought it might be
    worth mentioning. Also, again I don't think it's required, but did you run
    cupsaddsmb ?


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

  6. #6
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: CUPS SMB printing doesn't work 11.4

    On Tue March 22 2011 11:36 pm, swerdna wrote:

    >
    > There's a Samba bug in 11.4. A fix is on the way. In the menatime goto
    > Yast --> AppArmor and disable app armor. Then goto Yast -- System -->
    > runlevels and enable the nmb and smb daemons.
    >
    > Then reboot
    > Then set up the printer again.
    > [of course, you might be suffering some other problem, but take this
    > bug out of contention first.]
    >
    >

    swerdna;

    It seemed to me that AppArmor was more closely tied to the kernel with 11.4
    than in previous releases. After disabling AppArmor "System Services
    (Runlevel)" would still indicate that some of the daemons were still running,
    even though they were set to to not start. I also set AppArmor to just
    complain rather than enforce as added insurance against interference.
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

  7. #7
    Join Date
    Sep 2010
    Location
    Poland
    Posts
    1,970

    Default Re: CUPS SMB printing doesn't work 11.4

    Another way would be to use YaST to configure the AppArmor smbd and nmbd profiles accordingly. You can use this reference to do this :
    Chapter22.Building and Managing Profiles with YaST

    Best regards,
    Greg
    Best regards,
    Greg

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

    Default Re: CUPS SMB printing doesn't work 11.4

    Quote Originally Posted by venzkep View Post
    On Tue March 22 2011 11:36 pm, swerdna wrote:

    >
    > There's a Samba bug in 11.4. A fix is on the way. In the menatime goto
    > Yast --> AppArmor and disable app armor. Then goto Yast -- System -->
    > runlevels and enable the nmb and smb daemons.
    >
    > Then reboot
    > Then set up the printer again.
    > [of course, you might be suffering some other problem, but take this
    > bug out of contention first.]
    >
    >

    swerdna;

    It seemed to me that AppArmor was more closely tied to the kernel with 11.4
    than in previous releases. After disabling AppArmor "System Services
    (Runlevel)" would still indicate that some of the daemons were still running,
    even though they were set to to not start. I also set AppArmor to just
    complain rather than enforce as added insurance against interference.
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green
    I've upgraded to Tumbleweed now but still the Samba bug persists. Following your advice I've also switched AppArmor back on and set smbd to "complain". Thanks.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  9. #9
    Join Date
    Nov 2009
    Location
    ND, USA
    Posts
    1,131

    Default Re: CUPS SMB printing doesn't work 11.4

    On Thu March 24 2011 12:06 am, glistwan wrote:

    >
    > Another way would be to use YaST to configure the AppArmor smbd and nmbd
    > profiles accordingly. You can use this reference to do this :
    > 'Chapter22.Building and Managing Profiles with YaST'
    > (http://tinyurl.com/69mbb6r)
    >
    > Best regards,
    > Greg
    >
    >

    Greg;

    Of course you can properly edit the profiles. AppArmor has been a pain in
    the south side, when headed north, since it came out. IMHO those who need
    enhanced security should be using SELinux. I'm sure AppArmor was meant as a
    replacement but it looks to me like a solution looking for a problem.
    --
    P. V.
    "We're all in this together, I'm pulling for you." Red Green

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

    Default Re: CUPS SMB printing doesn't work 11.4

    Quote Originally Posted by glistwan View Post
    Another way would be to use YaST to configure the AppArmor smbd and nmbd profiles accordingly. You can use this reference to do this :
    Chapter22.Building and Managing Profiles with YaST

    Best regards,
    Greg
    It's not both of them, only smbd is at fault
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

Page 1 of 2 12 LastLast

Posting Permissions

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