Operating System - HP-UX
1848207 Members
7756 Online
104022 Solutions
New Discussion

Re: lpalt without root access

 
SOLVED
Go to solution
Cindy Snyder
Occasional Contributor

lpalt without root access

I have some operators that occasionally need to move print jobs from one printer to another using the lpalt command. Is there any way they can run this command without having to be root? I would prefer they not have access to root priviledges, but haven't been able to figure out how to set them up so it works.
Thanks!
6 REPLIES 6
Craig Rants
Honored Contributor

Re: lpalt without root access

Try sudo or restricted SAM.

Those two options should solve your problem.


Good Luck,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Krishna Prasad
Trusted Contributor

Re: lpalt without root access

I try restricted SAM
Positive Results requires Positive Thinking
Sebastien Masson
Valued Contributor
Solution

Re: lpalt without root access

Install sudo... from the HP portal web site http://hpux.ee.ualberta.ca/. Then you can manage who can execute what as root in the /opt/sudo/etc/sudoers file.
Cindy Snyder
Occasional Contributor

Re: lpalt without root access

Thanks for the answers, I'll try them.
Bill Hassell
Honored Contributor

Re: lpalt without root access

There's actually a real easy way to administer the lp spooler without being root: login as lp. Yes, lp is a real user ID and has permission to run the lp commands. However, lp is usually not setup like a normal user so you will probably want to create a different $HOME directory and also give the user a password.


Bill Hassell, sysadmin
Cindy Snyder
Occasional Contributor

Re: lpalt without root access

That final suggestion about logging in as the lp user is the best, and easiest, solution. I've already implemented it. Thanks to all!