1833710 Members
2536 Online
110063 Solutions
New Discussion

LP Administration

 
SOLVED
Go to solution
Ed Williams_3
Advisor

LP Administration

We have a need for a few help-desk personnel
(non-root) to add printers using jetadmin,
which means they need to be able to run the
lpshut, lpadmin, lpsched, etc commands called
by jetadmin. The lpshut command says it is
only for LP Administrators. Right now we have
a small compiled C program that our help desk
personnel use that calls jetadmin with suid
bit set to run it as root but it still fails.
Can I configure non-root accounts to be LP
Administrators? If yes, how? We are
currently stuck on HPUX 10.20 with JetAdmin
Rev. D.06.21. Any help will be appreciated.
Thanks, Ed Williams

4 REPLIES 4
Sundar_7
Honored Contributor
Solution

Re: LP Administration

sudo is the way to go. Download sudo from the HP-UX porting center and enable the help-desk users to execute jetadmin as root using the /etc/sudoers file.

Learn What to do ,How to do and more importantly When to do ?
Rick Garland
Honored Contributor

Re: LP Administration

As mentioned, SUDO is a good tool.

Another option is to add these users to the lp group. Careful, you may give them more power than you want them to have.
Sanjay_6
Honored Contributor

Re: LP Administration

Hi Ed,

Restricted sam through "sam -r" is one way to go.

another way is to use sudo. Sudo is free an very east to install and configure,

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/sudo-1.6.7p5/

Another way is Powerbroker. This is licensed product and you pay $$ for it. For more info checkout http://www.symark.com

Hope this helps.

Regds
Ed Williams_3
Advisor

Re: LP Administration

I successfully used sudo. Thanks for the
quick answers.