Re: ISM - run backups as a user other than root?
Posted in 2010
On 27/07/2010 17:15, Clive Eisen wrote: > > On 27/07/2010 16:50, Malc wrote: >> On Jul 27, 4:18 pm, Clive Eisen<cl...@serendipita.com> wrote: >>> On 27/07/2010 16:08, Malc wrote: >>> >>> >>> >>>>> sudo? >>> >>> man sudoers >>> >>> no passwords required >>> >> Ah promising - set up an alias and assign the command string to that >> alias with NOPASSWD set... >> Hmm - looks like the call to 'savegrp' is made from within the legato >> executable; experimentation is in order then! > Hmnn > > Well that means you will have to run legato sudo > > As you still need to 'type' sudo savegrp > to make it happen even with sudoers > > Other thoughts > > 1) suid > 2) use sudoers and > binary edit the legato binary to get it to call say Savegrp > 2a) where Legato is a script that execs sudo savegrp $@ > or > 2b) If your sysadmins don't like a script you can write a bit of C that > does the same Sorry missed one Put a script called savegrp EARLIER in your PATH that execs the real one with sudo That way you don't need to faf around editing legato This will not work if the full path to savegrp is in legato -- This message has been scanned for viruses and dangerous content by OpenProtect(http://www.openprotect.com), and is believed to be clean.