Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running savegrp as non-root user

Status
Not open for further replies.

ipdipdogshit

IS-IT--Management
Jan 6, 2004
4
GB
Hi all, apologies for starting with a question, but does anyone know how to run /usr/bin/savegrp as a non-root user? I don't want to setuid the whole suite of software when, through the GUI you can allocate alternative administrators, however, these are ignored by command line instructions; this is important for our operators when rerunning a single client within a savegroup, rather than the whole savegroup through "Group Control", i.e.:

Backupuser:$ /usr/sbin/savegrp -c poppadom "Daily Rerun 1"
01/13/04 12:36:30 savegrp: You are not authorized to run this command

... harrumph!

Any help greatly appreciated.
 
No sorry, savegrp has to run as root. If you need to run it with extra params as you describe, then you do have to do it this way. Best plan is to use sudo for savegrp.
 
Thank you Davina, evidently the auditors have decreed sudo too risky, so we can't use it. I am, however, having a look at the builtins in dtksh which get the go-ahead. I'll post it up if anything works, however unlikely.
 
Hello again, experimenting with the switchuser builtin from dtksh (Not asking for programming tips), everything appears to do what it should, but I get this returned:

$ ./switchuser /usr/sbin/savegrp -c lonu0124 -l incr Daily_Rerun_1
01/14/04 09:51:03 savegrp: command 'savefs -s lonu0112 -c lonu0124 -g Daily_Rerun_1 -p -l full -R -v ' for client lonu0124 exited with return code 76.
* lonu0124:All ! no output
01/14/04 09:51:03 savegrp: lonu0124:probe will retry 5 more time(s)
01/14/04 09:51:03 savegrp: command 'savefs -s lonu0112 -c lonu0124 -g Daily_Rerun_1 -p -l full -R -v ' for client lonu0124 exited with return code 76.
* lonu0124:All 1 retry attempted
.... Up to the retry limit...

Does anyone know what the messages, particularly the return code 76, mean?

Many thanks in anticipation.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top