1836711 Members
3200 Online
110108 Solutions
New Discussion

make a user an "lpadmin"

 
SOLVED
Go to solution
TwoProc
Honored Contributor

make a user an "lpadmin"

I've got an operator that need to be able to do lpmove's etc. When he runs the "lpmove"command it gives him the error "This command is for use only by lp administrators."
I've tried putting him in the "lp" group, but to no avail.

So, apparently that's not the way to do it.

So, what is the correct method to make an oper able to move print jobs? I know can set this up via sudo, but from looking at the error message it looks like there should be a standard mechanism.

Any help appreciated.
We are the people our parents warned us about --Jimmy Buffett
8 REPLIES 8
Jeff_Traigle
Honored Contributor
Solution

Re: make a user an "lpadmin"

sudo is the only way I've seen this done. I don't recall ever seeing an out-of-the-box way to allow someone access to the lp administration commands. Don't see anything in a quick glance through the man pages either.
--
Jeff Traigle
Pete Randall
Outstanding Contributor

Re: make a user an "lpadmin"

You could also set up restricted SAM to allow access to SAM's print facilities. Try "sam -r."


Pete

Pete
Alzhy
Honored Contributor

Re: make a user an "lpadmin"

Restricted SAM or via SUDO are the only two ways we've been able to do this.

However, we are as well considering using CUPS which I believe allow for layers of administration/operation to the printing subsystem.

Hi Jeff.. glad to see you in the forums...
Hakuna Matata.
TwoProc
Honored Contributor

Re: make a user an "lpadmin"

Thanks all,

I was just thinking that the error message was alluding to the fact there must be a method.

As for as restricted sam (or unrestricted for that matter), it doesn't seem to have the command to move print jobs between queues. Which gives me pause to that think that years ago I must have seen it do this via sam, but I've been using the command line option for so long now, I can't really say one way or the other.

Questions: Does your sam interface have the ability to move print jobs? Can you show me a screenshot? If so, what version do you have?
We are the people our parents warned us about --Jimmy Buffett
Geoff Wild
Honored Contributor

Re: make a user an "lpadmin"

Yes, I believe with Restricted SAM you can move jobs...

I set this up for the oper's at my site - I just enabled all under "Printers and Plotters":

sam -r

SAM Printers and Plotters -> Enabled


Example:

â â Source SAM ^ â
â â Area Print Requests â
â â Access Status Enabled â
â â Run As root

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
TwoProc
Honored Contributor

Re: make a user an "lpadmin"

Interesting,

We called HP Support, and they confirmed that the ability to move jobs SHOULD be inside of SAM.

Then we asked them to actually go inside of SAM on their version, and low and behold, it's gone from their version also! They were confused about it (at this point) too.

I'm guessing it dissapeared in a patch.

Does anyone else have a case of the missing "lpmove" command from SAM?

I'll report back as to what HP Support has to say.
We are the people our parents warned us about --Jimmy Buffett
Rick Garland
Honored Contributor

Re: make a user an "lpadmin"

Put the user in the lp group.

Geoff Wild
Honored Contributor

Re: make a user an "lpadmin"

If you are not the owner - even if in the lp group, you can not cancel/move jobs that you do not own. Only root/owner can move.

As far as sam, yes - I just checked and there is no move in my sam either...

Looks like sudo is the only way - or maybe have a look at HP SIM:

http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T2414BA



Rgds...Geoff


Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.