From: Edwin H. <ed...@co...> - 2003-02-11 15:48:40
|
[ Markus Schaub wrote: ] > The flexbackup setup with sudo from the FAQ does not work as described. I > had to set "Defaults:backupuser !authenticate" ind /etc/sudoers to turn off > the password prompt (thought that NOPASSWD should do it, but for me it > doesn't). I don't need the Defaults: line for this to work, perhaps it's a sudo difference? I have sudo-1.6.6. > Second, "$path{'dump'} = 'sudo -u backup dump';" (outcommented example from > flexbackup.conf) gives an error ("sudo -u not found in $PATH"), so it is not > possible, to run the command as !root. Common case is to use $path{'dump'} = 'sudo dump', since dump needs root to run. The -u is for possibly running the command as non-root AND not the current user, I'm not sure that's what you wanted, is it? (it does have a buglet you found with the path-checking which I'll fix) I'll clean up the config comment and the faq for this so it's more clear. (You don't even need to set $remoteuser for the common case.) -- Edwin Huffstutler Linux - because reboots are for hardware changes ed...@co... GnuPG Key ID: AE782DC9 |