1752513 Members
4969 Online
108788 Solutions
New Discussion юеВ

Re: 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 4
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
Dennis Handly
Acclaimed Contributor

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.