FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-25-2008, 10:49 AM
Jamie Thompson
 
Default CUPS and Device Permissions

Hey.

I've been trying to get the printer working on my parent's PC, which is now actually using their Debian install now that their XP install has died and
I'm in no hurry to reinstall it.


Interesting issue though, namely, the printer device and cups.

Basically, I have cups using the default users and groups, namely "lp" and "lpadmin". The groups are all populated (over -populated for my testing,
actually, but I digress), but it just doesn't work. The permissions on the device "/dev/usb/lp0" are the default "crw-rw---- root:lp", but even though
I've dumped everyone I can think of into the "lp" group, it doesn't work unless I either give ownership to the "lp" user, or give everyone rw rights.
The group side of things just doesn't seem to work at all. I've looked at the processes when printing, and AFAIK they seem correct ( daemon as "root",
children as "lp").


I've just modified the udev rule to set the user as "lp" to let them print, but I'd like to figure out why it's not working as expected. Any ideas?
 
Old 06-25-2008, 04:08 PM
Nathaniel Homier
 
Default CUPS and Device Permissions

Jamie Thompson wrote:

Hey.

I've been trying to get the printer working on my parent's PC, which is
now actually using their Debian install now that their XP install has
died and I'm in no hurry to reinstall it.


Interesting issue though, namely, the printer device and cups.

Basically, I have cups using the default users and groups, namely "lp"
and "lpadmin". The groups are all populated (over -populated for my
testing, actually, but I digress), but it just doesn't work. The
permissions on the device "/dev/usb/lp0" are the default "crw-rw----
root:lp", but even though I've dumped everyone I can think of into the
"lp" group, it doesn't work unless I either give ownership to the "lp"
user, or give everyone rw rights. The group side of things just doesn't
seem to work at all. I've looked at the processes when printing, and
AFAIK they seem correct ( daemon as "root", children as "lp").


I've just modified the udev rule to set the user as "lp" to let them
print, but I'd like to figure out why it's not working as expected. Any
ideas?


Is the printer known to work in Debian? What are you using to configure
the printer, the gnome-printer menu item or 127.0.0.1:631. Try to avoid
using the gnome-printer-config because it is very buggy. Open up
127.0.0.1:631 and go to admin and add printer and it will walk you
through a little wizard. When all is done it will ask for your username
and password that you use for logging onto the computer, don't use root.
If this don't work then add the user that your parents will be to
lpadmin. How I did it was to go to gnome-user-groups menu item and
select group tab>lpadmin>properties button>select my name and click add.
Now that you added the user try 127.0.0.1:631 again and it should
accept your username and password. assuming the printer works in the
first place under Linux.


Nate


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 06-29-2008, 10:24 PM
Jamie Thompson
 
Default CUPS and Device Permissions

Nathaniel Homier wrote:

Is the printer known to work in Debian?


Not directly, but it's a Canon IP4200, which has Linux drivers (abet RPMs which
I've found repackaged (old) by a kind Japanese fellow, though I'm just
using the Canon RPMs and alien for the time being). Few niggles aside, seems to
work.

What are you using to configure the printer, the gnome-printer menu item or
127.0.0.1:631.


I started off using KDE's printer section in "Control Center", but that was/is a
bit flaky. I eventually got the printer added though. I find job
manipulation and sending test jobs works best from localhost:631 though.

Try to avoid using the gnome-printer-config because it is very buggy. Open
up 127.0.0.1:631 and go to admin and add printer and it will walk you through
a little wizard. When all is done it will ask for your username and
password that you use for logging onto the computer, don't use root. If this
don't work then add the user that your parents will be to lpadmin. How I did
it was to go to gnome-user-groups menu item and select group
tab>lpadmin>properties button>select my name and click add. Now that you
added the user try 127.0.0.1:631 again and it should accept your username and

password. assuming the printer works in the first place under Linux.


I have everyone in lpadmin and lp for testing, and they al seem to be able to
use the localhost:632 tools, but I'll have another look at your steps to see if
anything else happens when you follow them, thanks for your help!

- Jamie
 
Old 06-30-2008, 04:40 AM
Nathaniel Homier
 
Default CUPS and Device Permissions

Jamie Thompson wrote:

Nathaniel Homier wrote:

Is the printer known to work in Debian?


Not directly, but it's a Canon IP4200, which has Linux drivers (abet
RPMs which

I've found repackaged (old) by a kind Japanese fellow, though I'm just
using the Canon RPMs and alien for the time being). Few niggles aside,
seems to

work.

What are you using to configure the printer, the gnome-printer menu
item or 127.0.0.1:631.


I started off using KDE's printer section in "Control Center", but that
was/is a

bit flaky. I eventually got the printer added though. I find job
manipulation and sending test jobs works best from localhost:631 though.

Try to avoid using the gnome-printer-config because it is very buggy.
Open up 127.0.0.1:631 and go to admin and add printer and it will walk
you through
a little wizard. When all is done it will ask for your username and
password that you use for logging onto the computer, don't use root.
If this don't work then add the user that your parents will be to
lpadmin. How I did it was to go to gnome-user-groups menu item and
select group tab>lpadmin>properties button>select my name and click
add. Now that you added the user try 127.0.0.1:631 again and it should
accept your username and

password. assuming the printer works in the first place under Linux.


I have everyone in lpadmin and lp for testing, and they al seem to be
able to
use the localhost:632 tools, but I'll have another look at your steps to
see if

anything else happens when you follow them, thanks for your help!

- Jamie

Good luck, if it still does not work then just keep trying and using the
list and maybe someone with more experience will be able to help you.
KDE, oh I am such a gnome head that I forgot there are others out there.


Nate


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 05:05 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org