Operating System - HP-UX
1836357 Members
1863 Online
110100 Solutions
New Discussion

make_tape_recovery problem

 
ajk_5
Frequent Advisor

make_tape_recovery problem

Dear all,

I would like share the function make_tape_recovery to our support team users for OS backup.

For older version of make_tape_recovery, I can share it to other users using the function for OS backup.

Right now I am using make_tape_recovery for OS backup. As it is the latest version which only 'root' can use it. It is not a good way sharing the root account to other users. I used a third party program called 'sudo' for that propose, but it didn't work.

Do you all know any way how I can do that?

Thanks very much!

ajk
4 REPLIES 4
Ian Dennison_1
Honored Contributor

Re: make_tape_recovery problem

Write a wrapper program in C, example below

#include
#include

main()
{
setuid(0);
system("/usr/local/scripts/mys cript.sh");
}

Compile it using "cc program.c", rename a.out to the appropriate program name.

Do a "chmod +S program_name", so that sticky bits appear on the program.

And you're done! Share and Enjoy! Ian
Building a dumber user
Cheryl Griffin
Honored Contributor

Re: make_tape_recovery problem

How about adding a custom application to SAM with the Ignite command for /opt/ignite/bin/make_tape_recovery -a (include whatever options you want here). The command will show up as something similar to this in your main SAM area. (I called my custom app "Ignite" in this example):
Source Area
Custom Ignite
then set up Restricted SAM (as root # sam -r) and enable access to this for the user.

The user will be able to log in as themself, run SAM and access the Ignite command.
"Downtime is a Crime."
ajk_5
Frequent Advisor

Re: make_tape_recovery problem

I did add a custom application to SAM for other users, but it didn't work. The problem is the newest version of make_tape_recovery ONLY can use by 'root'. Do you have any idea?
Thanks.

Best Regards
ajk
Michael Tully
Honored Contributor

Re: make_tape_recovery problem

Set up sudo. You can get it from here:
http://hpux.connect.org.uk/hppd/hpux/Sysadmin/sudo-1.6.6/

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome"

Anyone for a Mutiny ?