Go Back   openSUSE Forums > Archives > SLS Archives > ARCHIVES - SuSE Linux > ARCHIVES - Hardware Support
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Hardware Support Do you have any problems with installing new hardware under SuSE Linux? Post your question in here...

 
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-May-2008, 16:39
Alister
Guest
 
Posts: n/a
Thumbs up

I hope someone might know how to cure the incorrect port permissions for /dev/lp0?

After a "clean" install of 10.3 I cannot get my printer to work unless i make the device -rw-rw-rw-

However after a re-boot it goes back to -rw-rw----

/dev/lp0 is owned by root and in group lp which looks normal to me, but most of the files (eg in the spool directory) seem to be owner root, group nobody - has this changed (and been messed up)?

BTW adding nobody or root to the lp group also makes no difference.

For info - the symptoms are job stalls and printer goes offline when the permissions are wrong. you can re-set it until the next job comes along.
  #2 (permalink)  
Old 12-May-2008, 18:09
prh
Guest
 
Posts: n/a
Default

I dont know if this will work, but I would try modifying (as root) the udev file:

/etc/udev/rules.d/50-udev-default.rules

Look for lp entries, then you could try adding a mode statement, something like:

MODE="0666"

(Study the file for exact syntax.)

This should assign read and write privilege to lp devices, for all users.

Havent tested this, but worth a try?

Paul

  #3 (permalink)  
Old 13-May-2008, 17:10
Alister
Guest
 
Posts: n/a
Default

Quote:
I dont know if this will work, but I would try modifying (as root) the udev file:

/etc/udev/rules.d/50-udev-default.rules

Look for lp entries, then you could try adding a mode statement, something like:

MODE="0666"

(Study the file for exact syntax.)

This should assign read and write privilege to lp devices, for all users.

Havent tested this, but worth a try?

Paul
[/b]

thanks for your suggestion, but unfortunately there don't seem to be any entries for lp0.
nearest is:

Code:
# printer
SUBSYSTEM=="usb",********KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
SUBSYSTEM=="printer",********KERNEL=="lp*", GROUP="lp"
KERNEL=="irlpt*",********GROUP="lp"
can this be added to or modified? (it all seems to be for USB rather than parallel ports)

I also found some similar bugs about udev reported on the bugs.archlinux.org website, and upgraded udev from V114-19 to latestish version 120-2.3 - but this didn't help either.

The funny thing is that Yast hardware_detection and printer_setup both correctly detect the printer (and obviously talk to it) ..

logically there MUST be a startup programme that re-writes this, but this process is still opaque to me
  #4 (permalink)  
Old 18-May-2008, 12:15
Alister
Guest
 
Posts: n/a
Default

this is driving me mad.....

now many late nights trying to find the problem. :wacko:

has ANYONE managed to get their parallel port working with CUPS under 10.3 ???
(at least then I'd know if there was a chance to fix it)

Since the previous posts I have

tried configurations via every route I can think of, (YAST CUPS direct edit of files)
re-installed CUPS
tried many combinations of adding LP and myself to various groups
turned CUPS logging to debug - to look for errors - but nothing
added permissions to /etc/permissions.local - but even this gets overridden

- none of which has helped.

the only thing I've discovered is that I cannot either (yet) get the printer to work remotely (but maybe this is a networking problem.? (seems not to be listening to port 631).

(I'm seriously considering down-grading to 9.3 which I know works and waiting for 11.0 to come along.)

Help!
  #5 (permalink)  
Old 19-May-2008, 17:08
Alister
Guest
 
Posts: n/a
Default

A small piece of progress - yes you can run the parallel port under 10.3 - because it works with the live-CD.
Otherwise still stuck to know - why CUPS (or whatever talks to /dev/lp0) has the wrong permissions and why the /dev/lp0 permissions get reset at boot.
Anyone?
  #6 (permalink)  
Old 19-May-2008, 18:29
broch
Guest
 
Posts: n/a
Default

add user to lp group

  #7 (permalink)  
Old 20-May-2008, 17:44
Alister
Guest
 
Posts: n/a
Default

Quote:
add user to lp group
[/b]
sorry -forgot to put in the original posting - my userid has been in group lp the whole time - no joy!
  #8 (permalink)  
Old 20-May-2008, 20:33
broch
Guest
 
Posts: n/a
Default

devices are create dynamically so obviously, all permissions are reset at boot time.

Quote:
the only thing I've discovered is that I cannot either (yet) get the printer to work remotely (but maybe this is a networking problem.? (seems not to be listening to port 631).[/b]
this is your first problem: fix cups.
it does not matter if your printer is local or not for printer to work you need print daemon. If you are using cups then port tcp 631 is open if port is not open the cups is not running then obviously printing problems persist:
you need to connect to
http://localhost:631
in order to configure printer.
  #9 (permalink)  
Old 21-May-2008, 17:57
Alister
Guest
 
Posts: n/a
Default

thanks for your responses -

I can connect like that to CUPS and I can configure everything - the only problem is the "permission denied" for the "/dev/lp0" which I can temporarily fix with chmod, but it is reset the moment I reboot.
When the device (temporarily) has world permissions then I can print successfully. Locally at least.

Is it actually CUPS that talks to the device or some child process? do you know where the faulty permissions might be coming from?

  #10 (permalink)  
Old 22-May-2008, 03:29
ferrari
Guest
 
Posts: n/a
Default


Quote:
SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"[/b]
As per your udev rules: Are you a member of 'lp' group (as Broch already mentioned)? Read this recent thread. Possible solution towards end of thread (as is normally expected).

Edit: Typos
 
Page 1 of 2 1 2

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2