You must authorize a client to do its own backup.

$ man amanda.conf

       dump-limit [ server | same-host ]*
           Default: server. Specify which host can initiate a backup of the
dle. With server, the server can initiate a backup with the amdump command. With same-host, the client can initiate a backup with the
           amdump_client command.


The attached patch fix the warning.

Jean-Louis

On 04/19/2012 10:52 AM, Darin Perusich wrote:
Now that I have this setuid issue resolved running amdump_client
{list,check} is successful on the client. "amdump_client dump: appears
to be successful but nothing is backed up and the report I'm emailed
says "planner: FATAL no DLE to backup" but I don't know what's causing
that.

There is the following warning in the client-side log, but I'm not
sure if it's related.

amdump_client: warning: Argument "DISK /var added\n" isn't numeric in
numeric ne (!=) at /usr/sbin/amdump_client line 101,<GEN2>  line 4.

--
Later,
Darin


On Tue, Apr 17, 2012 at 4:36 PM, Jean-Louis Martineau
<[email protected]>  wrote:
Darin,

The 'amservice' binary must set suid root.

Jean-Louis


On 04/17/2012 03:43 PM, Darin Perusich wrote:
Is there any documentation on using amdump_client? Nothing comes up
when searching the wiki other than mentions in release notes and the
man page isn't proving very helpful.

I've configured amdumpd on the server, per
http://wiki.zmanda.com/index.php/Amdumpd_protocol, and added my client
to .amandahosts on the server so it can connect. Whenever I run
amdump_client from the client as amanda, see amanda-client.conf below,
it fails with permission denied when attempting to bind to the local
ports, which are under 1024. Yet, when i try and run the program as
root it fails because I'm not amanda.

I'm stuck in a loop, what am I missing?


diff --git a/client-src/amdump_client.pl b/client-src/amdump_client.pl
index 560747c..e6332c5 100644
--- a/client-src/amdump_client.pl
+++ b/client-src/amdump_client.pl
@@ -101,7 +101,7 @@ if ($cmd eq 'list') {
 		    debug("send: DISK " . Amanda::Util::quote_string($diskname));
 		    print {$amservice_in} "DISK " . Amanda::Util::quote_string($diskname) . "\n";
 		    my $a = <$amservice_out>;
-		    print if ($a != /^DISK /)
+		    print if ($a !~ /^DISK /)
 		}
 	    }
 	}

Reply via email to