You are not logged in.
Pages: 1
Topic closed
Hi there. I have a question regarding a particular CUPS setup that I have to use.
Basically, I am a student at university and our printer network uses a printer credit system to make sure we don't take advantage and print lots of documents needlessly. It uses a CUPS server to run all this, and is set up to only allow print jobs which originate from approved usernames (the university ID we are all given). This means that the only print instructions we are given is "create a new user on your laptop with the same name as your id, and print from that account".
Now, as you can imagine, that is hardly an acceptable solution; I don't really want to go through the hassle of moving all my stuff to a new user account, I am quite attached to my current username thankyouverymuch. I have CUPS set up on my laptop to choose the correct printer easily enough. And I have managed to get documents to print from within my original user account (let's say 'foo') by creating a new user on my laptop with the correct name (again, let's say 'bar') and printing manually from the command line:
[foo@jiraiya ~]$ lp -U bar file_to_print.psHowever, if I try to print from, say, OpenOffice it sends the command straight to CUPS as the original user (foo). I'm assuming this is because OO.o and Gnome have their own internal ways of talking to CUPS. My problem is that if I try and print from anything other than the commandline, it sends the file as foo and not bar.
Is there a way to set up CUPS itself to convert any print job to a particular user before sending it onto the remote print server? I know it's easy to make any process you like run as any user you like in linux, so it has to be possible at some stage of the process to have cups send the request as a different user than the originator. I have searched through all the CUPS config files, and all the forums I can find and have found nothing relating to my problem. Please tell me that I am not the first person to run into this issue?
/richard
Last edited by samsari (2008-10-16 13:59:55)
Offline
Hi,
Instead of creating a new user and account with that name/id, try creating a group that bears this name and id, and become member of this group.
Last edited by mélodie (2009-04-27 10:35:04)
Offline
$ su bar -c ' lp file_to_print.ps'
I don't suppose that could work?
OR:
$ lp -U bar -u bar file_to_print.ps
Last edited by fumbles (2009-04-27 11:11:09)
Offline
I found that putting
export CUPS_USER=<username>into .xinitrc, or .bashrc, or wherever works for me.
Offline
Offline
Pages: 1
Topic closed