LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-01-2008, 12:21 AM   #1
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 33
usb printer & groups


How I find out what group my usb printer thinks is...I guess actually the problem is what user the system thinks is attempting to operate the usb printer...or to be more technically correct, what user is attempting to access /dev/usb/lp0?

Printer is a HP C6380 using hpijs driver (part of hplip) and will print only after executeing
Code:
sudo chmod 666 /dev/usb/lp0
which gives "others" permission read/write permission for /dev/usb/lp0. Default is read/write to owner (root) and group(lp) only.

Print job is owned by user crashedagain. Users crashedagain, cupsys, hplip and lp are members of group lp. Since both crashedagain and hplip are members of group lp, they should be able to access the printer....shouldn't they?

Another oddity...unless chmod 666 /dev/usb/lp0 is executed, the kde "install printers" dialog cannot access local printers.

chmod 666 ~ must be done after every startup because the system sets default permissions each time it populates /dev during stsrtup.
 
Old 12-01-2008, 12:31 PM   #2
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
http://ubuntuforums.org/showthread.php?t=116349

http://groups.google.com/group/linux...lnk=raot&pli=1

Last edited by ehawk; 12-01-2008 at 12:33 PM.
 
Old 12-01-2008, 02:09 PM   #3
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Original Poster
Rep: Reputation: 33
Thank you very much for the references.

I have temporarily solved the problem by adding "chmod 666 /dev/usb/lp0" to bootmisc.sh. This may or may not be the most reliable way to solve the problem.

The Ubuntu forum suggests editing udev rules to mode="0666" on creation of the /dev/lp* but there seems to be an error in specifying which file to edit...the posting says to edit permissions.rules but the line structure quoted only appears in udev.rules. I'll try it anyway.

The other suggestion is to edit the groups to allow lpadmin to access the printer...problem is I do not have "lpadmin" in either groups or users. I don't think editing cups config files is a good solution...it is possible they may get overwritten if/when cups is upgraded.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
BT Home Hub & USB Printer ahaslam Linux - Networking 6 02-18-2007 05:48 PM
CUPS & USB espon printer edM Slackware 5 03-17-2005 06:20 PM
Kernel 2.6 & usb printer [solved] CoolAJ86 Linux - Hardware 1 10-01-2004 08:34 PM
USB Printer & Scanner, need help Viper Slackware 5 05-20-2003 10:37 PM
usb & printer franky Linux - Newbie 0 12-28-2001 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration