PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 11:32:49 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: <Going To Plan B>/dev/lp0 permission problems  (Read 599 times)
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« on: August 25, 2010, 04: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.
Logged
hal8000
Sr. Member
****
Offline Offline

Posts: 313



« Reply #1 on: August 25, 2010, 04:16:29 PM »

Did you try the cups web interface:

http://localhost:631

Login as root and root password to administer.
Logged
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« Reply #2 on: August 25, 2010, 04: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?
Logged
muungwana
Hero Member
*****
Online Online

Posts: 5403


« Reply #3 on: August 25, 2010, 04:37:27 PM »


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

ls -l /dev/lp0
Logged

.. 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 ..
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« Reply #4 on: August 25, 2010, 04: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
Logged
muungwana
Hero Member
*****
Online Online

Posts: 5403


« Reply #5 on: August 25, 2010, 04:56:18 PM »

what is the output of these two commands?

whoami

cat /etc/group | grep lp
Logged

.. 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 ..
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« Reply #6 on: August 25, 2010, 05: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
Logged
muungwana
Hero Member
*****
Online Online

Posts: 5403


« Reply #7 on: August 25, 2010, 05: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
Logged

.. 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 ..
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« Reply #8 on: August 25, 2010, 05: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.
Logged
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« Reply #9 on: August 25, 2010, 06: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.
Logged
rubentje1991
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2052


Rubenum Parvus MCMXCI


« Reply #10 on: August 26, 2010, 01: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
Logged
Ray2047
Hero Member
*****
Offline Offline

Posts: 1323


« Reply #11 on: August 26, 2010, 10: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.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM