Author Topic: <Going To Plan B>/dev/lp0 permission problems  (Read 958 times)

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
<Going To Plan B>/dev/lp0 permission problems
« on: August 25, 2010, 03:14:28 PM »
I have a Samsung ML-2571N printer. It works fine in USB but I'm now trying to get it going on LP0 and am having permission problems. Tried setting it up in both PCC and CUPS local. Error is
Quote
printer-state-message="Unable to open device file "/dev/lp0": Permission denied

Did my due diligence search and found a couple of answers on the web that were over my head and a couple of suggestions it was a kernel problem. Found one solution searching here but the person using it reported problems later.

The reason I'm switching is I needed a USB cable for another device and I had a half dozen LP cables and only one USB.

If I am understanding what I see in CUPS it is being set up as RAW. That's no driver right? Maybe that is the problem.
« Last Edit: August 25, 2010, 05:10:09 PM by Ray2047 »
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline hal8000

  • Sr. Member
  • ****
  • Posts: 346
Re: /dev/lp0 permission problems
« Reply #1 on: August 25, 2010, 03:16:29 PM »
Did you try the cups web interface:

http://localhost:631

Login as root and root password to administer.

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
Re: /dev/lp0 permission problems
« Reply #2 on: August 25, 2010, 03:19:42 PM »
Did you try the cups web interface:

http://localhost:631

Login as root and root password to administer.
Yes, that's what I meant when I wrote tried in CUPS local. Going through Cups Local Host the  Discovered printers is blank. Not seeing where to select Samsung. Note in USB the driver is Foomatic. Could a bad cable give the error I'm getting when I try to print?
« Last Edit: August 25, 2010, 03:37:07 PM by Ray2047 »
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: /dev/lp0 permission problems
« Reply #3 on: August 25, 2010, 03:37:27 PM »

open the terminal and type this command(copy and paste it) and posts its out put here.

ls -l /dev/lp0
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
Re: /dev/lp0 permission problems
« Reply #4 on: August 25, 2010, 03:44:27 PM »

open the terminal and type this command(copy and paste it) and posts its out put here.

ls -l /dev/lp0
crw-rw---- 1 root lp 6, 0 2010-08-25 10:35 /dev/lp0
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: /dev/lp0 permission problems
« Reply #5 on: August 25, 2010, 03:56:18 PM »
what is the output of these two commands?

whoami

cat /etc/group | grep lp
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
Re: /dev/lp0 permission problems
« Reply #6 on: August 25, 2010, 04:12:18 PM »
what is the output of these two commands?

whoami

cat /etc/group | grep lp


$ whoami
roj
[roj@localhost ~]$ cat /etc/group | grep lp
lp:x:7:mysql,roj
lpadmin:x:477:mysql,roj
« Last Edit: August 25, 2010, 04:14:27 PM by Ray2047 »
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: /dev/lp0 permission problems
« Reply #7 on: August 25, 2010, 04:19:37 PM »

ok, you are "roj" and you are already in "lp" group so the permission problem is hopefully comming from the "other" part of the permission.

while on the terminal, type this command and and enter root's password when asked and then try to set it up again and see if you still get the same permission denied error, report whatever error msg you get

su -c "chmod 666 /dev/lp0"

ps:
it is sometimes hard to see spaces in commands and hence its always best to copy and paste them on the terminal
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
Re: /dev/lp0 permission problems
« Reply #8 on: August 25, 2010, 04:46:07 PM »
Well progress of sorts. I am now getting "printer not connected" so I'm going to try a different cable later tonight. Thank you for all your help.
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
Re: <Going To Plan B>/dev/lp0 permission problems
« Reply #9 on: August 25, 2010, 05:13:10 PM »
Well changing the cable didn't help. I think I'm going to plan B. I'll try getting it up on Ethernet. That don't work I'll just buy another USB cable. Thank you all for your help.
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: <Going To Plan B>/dev/lp0 permission problems
« Reply #10 on: August 26, 2010, 12:33:18 AM »
"raw printer" is probably selected because of a failure in the automatic detection of your printer in PCLinuxOS Control Center
=> it isn't reported, but what can help is the following:

Open PCC >> Hardware >> Printers etc.
Delete your printer that's listed there...

Then add a printer, and deselect "automatically detect and configure your printer";
then go through the process, selecting the right location, choosing the right driver etc.

After that, test if it's working now

Offline Ray2047

  • Hero Member
  • *****
  • Posts: 1504
Re: <Going To Plan B>/dev/lp0 permission problems
« Reply #11 on: August 26, 2010, 09:01:19 PM »
Quote
Open PCC >> Hardware >> Printers etc.
Delete your printer that's listed there...

Then add a printer, and deselect "automatically detect and configure your printer";
then go through the process, selecting the right location, choosing the right driver etc.

After that, test if it's working now
Yes realized several tries ago why I got raw. I have been installing the correct driver but now three cables later I'm back to permission denied.
KDE 64 bit.
CPU: AMD Athlon II X2 250 Processor.
Display:  nVidia C61 [GeForce 7025 / nForce 630a.
Memory: 3Gb