LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-09-2012, 03:09 AM   #1
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 77

Rep: Reputation: 15
CUPS printing with different job username


Hi,

I am in a network environment where my local username is different from the username I need my CUPS print jobs to be sent to the queue as.

For example, my local username is "local" but I need to send jobs to the remote print queue as "netuser".

Currently I have been doing:

Code:
lp -U netuser <filename>
How can I make this apply to all jobs - for example - those printed from graphical programs using "File->Print" ?

I've tried messing with lpoptions but I can't seem to find anything that works.
 
Old 05-09-2012, 04:25 AM   #2
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
You can edit /etc/cups/printers.conf as described in this document and use lpadmin whith the -U option.
 
Old 05-09-2012, 04:56 AM   #3
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
Code:
lpadmin -U netuser -d <printername>
Code:
lp <filename>
results in the file printed as localuser still.

I can't see any option in that link you sent me which I can add to printers.conf to allow me to do this.
 
Old 05-09-2012, 05:05 AM   #4
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Is the netuser a SMB user?
Is this printer a Windows shared one?
It can be useful also knowing which distro you are using.

Last edited by Slackyman; 05-09-2012 at 05:10 AM.
 
Old 05-09-2012, 05:19 AM   #5
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
I'm connected to the print queue using lpd://.

I'm using Gentoo and the printer isn't a Windows shared printer and doesn't use SMB.
 
Old 05-09-2012, 06:00 AM   #6
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Have you used the username to connect the printer?
Somenthing such lpd://username@hostname_or_ipaddress
 
Old 05-14-2012, 05:52 AM   #7
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
I did try that but no luck - it still prints as my local user :S

I really don't want change my local account just to print
 
Old 05-18-2012, 04:36 AM   #8
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
Anyone have any ideas? Surely a feature like this hasn't been overlooked in CUPS...
 
Old 05-18-2012, 06:30 AM   #9
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Sorry, but I didn't ask you which distribution you are running.
It can make a little difference.
 
Old 05-18-2012, 06:57 AM   #10
eponymous
Member
 
Registered: Oct 2004
Distribution: Gentoo
Posts: 77

Original Poster
Rep: Reputation: 15
I'm using 3.0.6-gentoo #9 SMP Fri Mar 9 13:27:56 GMT 2012 x86_64 Intel(R) Core(TM) i7-2600 CPU @ 3.40GHz GenuineIntel GNU/Linux.

Thanks.
 
Old 05-18-2012, 08:46 AM   #11
Slackyman
Member
 
Registered: Mar 2011
Location: Rome - Italy
Distribution: Slackware 13.1
Posts: 347

Rep: Reputation: 44
Maybe you can read this CUPS doc about using Kerberos authentication.
 
  


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
CUPS ERROR: [Job ???] Request file type is text/plain. (CUPS on ARM architectu abhinit Linux - Software 3 04-22-2011 03:19 AM
CUPS Printing Job Separator Sheets. dickinse Linux - Server 2 09-24-2010 10:07 AM
cups says its busy printing, cancel deletes one job but others keep materializing Bertie Slackware 4 05-05-2010 03:23 PM
Printing job stuck with CUPS 1.3 SVN-r5805 g4j31a5 Linux - Hardware 1 09-14-2006 08:33 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration