Operating System - HP-UX
1837979 Members
2789 Online
110124 Solutions
New Discussion

Re: want to run hppi without being super-user

 
SOLVED
Go to solution
Gregg R Vermilyea
New Member

want to run hppi without being super-user

I recently switched from jetadmin to jetdirect to add network printers.

With jetadmin I was able to have a non-super-user add and remove printers.

Any suggestions how to allow a non root user to run hppi and whichever subprograms(necessary to add remove printers) hppi calls?
5 REPLIES 5
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: want to run hppi without being super-user

This is a problem begging for a "sudo" solution. You can download and install sudo from any of the HP-UX Porting Centre's.

If it ain't broke, I can fix that.
Donny Jekels
Respected Contributor

Re: want to run hppi without being super-user

sudo is about the only secure way to what you want.

http://www.sudo.ws
"Vision, is the art of seeing the invisible"
Umapathy S
Honored Contributor

Re: want to run hppi without being super-user

Gregg,
hppi should be run by super user only and as suggested above, sudo is the solution possible.

configure sudo for those users whom you want to give that permission.

HTH,
Umapathy

Arise Awake and Stop NOT till the goal is Reached!
Paul Sperry
Honored Contributor

Re: want to run hppi without being super-user

Or super which I preferr.

Sudo --
Sudo allows a permitted user to execute a command as the superuser.
I think its central design philosophy is that each user can be
trusted when executing certain commands. This is implemented
by allowing each user to execute the restricted commands for
which s/he is trusted, without giving access to other restricted commands.

Super --
The design philosophy behind super is two-fold:
(a) some users can be trusted when executing certain commands;
(b) there are some commands, such as a script to mount CDROM's,
which you'd like to be safely executable even by users who
are NOT trusted. Although setuid-root scripts are insecure,
a good setuid-root wrapper around a sensible non-setuid script
can be hard to break, and super provides that wrapper so that
even a non-trusted user can use the scripts.

In my view, the main differences to the administrator are:

(1) the files that specify valid user/command combinations have
a different look and feel.

(2) super provides a safe wrapper for scripts, so that a
well-written script can be run safely by ordinary
users without having to actually trust them.



Get you Super here:

http://smokeping.planetmirror.com/pub/hpux/Sysadmin/super-3.9.7/
Gregg R Vermilyea
New Member

Re: want to run hppi without being super-user

Thanks for the help everyone... I just downloaded and tested sudo and it works great.

Again, thanks for the help