Problem Configuring Samsung M2020W Laser Printer

Hello,

I successfully downloaded and installed Samsung Unified Linux Printer Driver for Samsung M2020W Printer. The latest cups is already installed. Both power cable and printer USB cable are firmly connected to the printer. However, I cannot configure the printer for first use. I tried the following:

  1. Via Configure Desktop > Printers

The “Password -System Settings” window asks for the root password. I enter my root password, but it says “wrong user name or password”. I use the same password for logging into Leap, or YAST without any problems. This particular window keeps asking for password for user “root”.

  1. Via YAST > Hardware > Printer Configurations

The screen says “There is no print queue

I have successfully done this many times before in Leap 42.2, Tumbleweed, Fedora 25 and Debian 8 on the same PC. This is the first time I run into problems configuring Samsung M2020 printer in Leap 42.3. Any suggestions?

Thank you for your help.

:frowning:

What about cups?

localhost:631

in the Browser.

I use Firefox browser. How do I find localhost in the browser?

Please note that both cups and ghostscript are already installed. All other Linux OS’s including Tumbleweed, Fedora 26 and Debian 9 have the printer working.

:frowning:

Type it in the Adress bar…

localhost:631

I got “cups 1.7.5” page after typing “localhost:631” in Firefox’s address bar.

The following is copied from localhost:631/admin/log/error_log tab of the same page:
E [13/Jul/2017:12:08:24 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:08:26 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:08:37 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:08:40 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:09:00 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:09:02 -0400] [Client 17] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [13/Jul/2017:12:09:38 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:09:41 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:10:35 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:10:38 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:11:12 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:11:15 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:11:44 -0400] [Client 17] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:12:00 -0400] [Client 15] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [13/Jul/2017:12:12:23 -0400] [Client 15] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:12:25 -0400] [Client 15] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:20:42 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:20:44 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:21:08 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:21:40 -0400] [Client 16] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [13/Jul/2017:12:22:32 -0400] [Client 16] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:22:34 -0400] [Client 16] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:24:16 -0400] [Client 17] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [13/Jul/2017:12:29:28 -0400] [Client 13] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:29:29 -0400] [Client 13] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:29:59 -0400] [Client 13] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:30:36 -0400] [Client 14] Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost
E [13/Jul/2017:12:30:45 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:30:47 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:31:02 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:31:05 -0400] [Client 14] pam_authenticate() returned 7 (Authentication failure)
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M332xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M262xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/ML-2160sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/SF-760sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M267xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/ML-2540sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M301xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLX-3160sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-600sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M283xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/C420sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-310sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLX-3170sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M306xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M2070sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-610sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-300sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/K2200sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLX-216xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/ML-2950sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLX-6220sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/C410sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/SCX-472xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M337xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M2020sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/SCX-4650sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/M288xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-620sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/SCX-470xsc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-320sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-360sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLX-3180sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/SCX-3400sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/CLP-660sc.cts”!
E [13/Jul/2017:12:33:00 -0400] [cups-driverd] Bad driver information file “/usr/share/cups/model/uld-samsung/cms/C43xsc.cts”!

I’m travelling today so research ability limited, but just in case this is helpful…
http://www.tompurl.com/2014-05-10-cupsdAuthorize-pam_authenticate-error.html

Didn’t work!

Hi everyone,

I did change the root password as suggested in the link provided by deano_ferrari, but no go.

Then I searched Google for the error message " Returning HTTP Forbidden for CUPS-Get-Devices (no URI) from localhost".

Results from several years ago in Debian Forums suggest that the solution to the problem of


pam_authenticate() returned 7 (Authentication failure)

lies in “lpadmin” group membership.

After a few trials using YAST > Users & Group Management, I got the printer working as follows:

  1. Use the (new) root password to access YAST;
  2. Users & Group Management;
  3. Add “root” to “users” group (very important step, otherwise I keep getting “wrong userid or password” message)
  4. Configure Desktop > Hardware >Printers
  5. Manually Add a PPD File (since system fails to automatically detect my plugged-in Samsung printer)
  6. Search > Home directory >Downloads >uld > noarch >share. (ULD stands for Unified Linux Driver)
  7. Select PPD file name: “Samsung_M2020_Series.PPD
  8. Select “Next”
  9. A dialog box appears bearing the printer’s model name, number and other buttons to configure printer.

Voila! PROBLEM SOLVED!

Thank you Sauerland and deano_ferrari for your helpful suggestions!
lol!

It’s not clear to me why that was needed. I’m away from my Linux machines for the next few days so can’t investigate further. Usually entering the credentials for the administrator (SystemGroup) defined in cupsd.conf should be sufficient. Maybe security setting related?

Hello deano,

I cannot open /etc/cups/cupsd.conf as root (I am the admin of my PC). The screen says “Access denied”.

What’s next?

How exactly are you trying to edit? GUI? CLI? Don’t leave us to guess the details.

For example, assuming nano (CLI editor) is installed…

su -c "nano /etc/cups/cupsd.conf"

If that doesn’t work show us

ls -l /etc/cups/cupsd.conf

Hello deano,

I was not trying to edit the file. I clicked on the file to see if I can read it.


su -c "nano /etc/cups/cupsd.conf"


bash: nano: command not found 

ls -l /etc/cups/cupsd.conf 

-rw-r----- 1 root lp 6244 Jun 14 04:50 /etc/cups/cupsd.conf

In Yast2 > User & Group Management, via Set Filter, I saw that root belongs to the System Users Group. But when I tried to configure the printer, a dialog box appears with user = root. When I provide root’s password, it says “Wrong user name or password”.

The choice of nano was just a CLI editor example, with the ‘su -c’ command to show you how to launch it (as root) from a user terminal. You obviously don’t have it installed, and so that would be the first step. :wink:

You could also just view it using

cat /etc/cups/cupsd.conf

In Yast2 > User & Group Management, via Set Filter, I saw that root belongs to the System Users Group. But when I tried to configure the printer, a dialog box appears with user = root. When I provide root’s password, it says “Wrong user name or password”.

The CUPS administrator is defined in cups-files.conf typically (it used to be in cupsd.conf in earlier CUPS versions).

For reference, I get (as expected)

cat cups-files.conf|grep Sys
SystemGroup root

I’m not sure why your root credentials aren’t working as expected though.

Hello deano,

With


cat cups-files.conf|grep Sys

I got


cat: cups-files.conf: No such file or directory

Here’s what** cupsd.conf**-kate shows:

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order **allow**,deny
</Location>

[CODE# All administration operations require an administrator to authenticate…

AuthType Default
Require user @SYSTEM
Order [b]deny,allow



Perhaps the problem lies in the second group of codes.  How do I change from "deny" to "allow"?

My configuration is exactly as you have, and root credentials are required for these operations.

That’s because you’re in the wrong directory or didn’t enter the full path. These are basic things (especially for administrators)…

cat /etc/cups/cups-files.conf|grep Sys

or

cd /etc/cups/
cat cups-files.conf|grep Sys 

I just stumbled on the solution:

Yast2 >User & Group Management > Set Filter > System Groups > Root (Group)
**Add my userid to the Root Group > Apply
**
Then I was able to add the ** .ppd **file suitable to Samsung M2020 series printer to the printer configuration box.

Voila!

lol!

Well that works because cups-files.conf has (by default)

SystemGroup root

However, root should also be a member of this group by default! So, it’s not a solution really.