LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Suse/Novell (http://www.linuxquestions.org/questions/suse-novell-60/)
-   -   How do I access usb port properties. I need to set permissions. (http://www.linuxquestions.org/questions/suse-novell-60/how-do-i-access-usb-port-properties-i-need-to-set-permissions-687843/)

sjpiv44 12-02-2008 04:49 PM

How do I access usb port properties. I need to set permissions.
 
I have a usb port problem. I am trying to set up printers to usb port. When I

I have setup printer to connect to usb. When I test connection, it prints. Any other part of printer setup, shows up in the Que, but will not test print.

Seem that my usb port does not have permissions set up properly. How do I set up permissions and keep them setup?

Thanks,
sjip44

Steel_J 12-02-2008 08:02 PM

I will go off the top of my head without much research, but I would try this:

Start your file manager (like konqueror for example: sudo konqueror in console)

Then go to to /dev and locate your printer device name, i.e prn0 our lp0, etc...

Then open a console from that folder and do : ex. chmod +rx lp0

That will give your user all permissions on the printer.

Not sure it will work but try it.

thecarpy 12-03-2008 01:05 AM

first thing to test:

Code:

id
are you in the lp group? if not, add yourself to that group.

next:

Code:

ls -l /dev/usb/lp0
or
Code:

ls -l /dev/usb/prn0
is the group set to lp?

if no for both, check the udev rules:

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

It should say this:
# usb devices
[...]
BUS=="usb", KERNEL=="lp[0-9]*", NAME="usb/%k", GROUP="lp"
or
BUS=="usb", KERNEL=="prn[0-9]*", NAME="usb/%k", GROUP="lp"
[...]

sjpiv44 12-04-2008 05:27 PM

I still can not test print.
 
I have tested the previous post and created printers in yast and in CUPS. I still only get a test print to work in yast, printer, connection. Other test go to QUE.

When I go in CUPS and start, I get printer not connected.

Can anyone help?

Thanks,
sjpiv44

thecarpy 12-05-2008 09:08 AM

Please. tell me what /etc/udev/rules.d/50-udev.rules says about prn0 and lp0, please tell me what groups you are in and what the devices are set to:

egrep 'lp|prn' /etc/udev/rules.d/50-udev.rules
id
ls -l /dev/prn*
ls -l /dev/lp*

Then maybe i can help .... ;-)

Ohhh, which printer model and which distribution.

sjpiv44 12-10-2008 04:43 PM

this is what I found with previous question:

egrep lp 50-udev-default.rules
SUBSYSTEM=="usb", KERNEL=="lp*", NAME="usb/%k", SYMLINK+="usb%k", GROUP="lp"
SUBSYSTEM=="printer", KERNEL=="lp*", GROUP="lp"
KERNEL=="irlpt*", GROUP="lp"

In YaST, pinter, deskjet6540, connection I have usbprinteron ///HP/Deskjet6500?serial=my4833POPY040j

In cups when I start, I get 'Printer not connected'

Thanks

thecarpy 12-11-2008 03:38 AM

I guess you are a member of the lp group.

if you enter
Code:

id
it should list all the groups you are a member of. If you are not a member of the lp group, you should not be allowed to print, add yourself to that group in yast.

Besides someone claims your printer works great with the HP driver.

Here are specific instructions:
http://www.linuxfoundation.org/en/Op...SDocumentation

sjpiv44 12-12-2008 10:55 AM

Do I need to id from /dev?
 
FORDONE:/ # id
uid=0(root) gid=0(root) groups=0(root),100(users),1000(susefilepro)

As you can see, I was at root.

This was from /dev
lrwxrwxrwx 1 root root 7 Dec 12 10:15 usblp0 -> usb/lp0

usb:
total 0
crw-rw-r-- 1 root lp 180, 0 Dec 12 10:15 lp0

I hope that this is helpful. Thanks.

I have created networks with Novell and Windows with no printer problems. This has been a challange at best.

I appreciate any information you can share.

sjpiv44


All times are GMT -5. The time now is 09:13 AM.