HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

change privileage

 
suju
Advisor

change privileage

How can I change the privileage of a normal user so that he can run the copy & file command on the files in the /usr/spool/lp/reuest/lp directory in Hpux 9.0, As i want to run a shell script containg these commands by that user.
Thanks
Nitin
4 REPLIES
Ivan Krastev
Honored Contributor

Re: change privileage

You can use sudo - assign privileges to that user to execute the script as desired user.

regards,
ivan
Torsten.
Acclaimed Contributor

Re: change privileage

sudo with hp-ux 9.0x?

Unlikely.

I guess there is no clean solution for this.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
suju
Advisor

Re: change privileage

But sudo is not working in Hp-ux 9.0, can I use su in the shell script before running the restricted commands, if it is , how can i enter the password?

Thanks

Re: change privileage

>how can I enter the password?

You can't, unless you port expect too.
You probably need to write a custom SETUID C program that does the command you want.