BackupPC-users

Re: [BackupPC-users] cannot get backuppc to wol a client

2011-09-02 15:23:43
Subject: Re: [BackupPC-users] cannot get backuppc to wol a client
From: Tim Fletcher <tim AT night-shade.org DOT uk>
To: backuppc-users AT lists.sourceforge DOT net
Date: Fri, 02 Sep 2011 19:18:48 +0100
On Fri, 2011-09-02 at 00:34 -0700, egrimisu wrote:
> Hi guys,
> 
> backuppc won't wol client pc
> 
> NmbLookupFindHostCmd = /etc/backuppc/wakeup.sh 00:1a:4d:8c:0a:78 1 $host
> 
> wakeup.sh has 777 rights and contains:
> 
> 
> #!/bin/bash
> wakeonlan $1
> sleep ${2}m
> /usr/bin/nmblookup $3
> 
> using the dos command wolcmd.exe 001a4d8c0a78 192.168.2.74 255.255.255.0  
> wakes the pc up.

Sending the WoL packets need root (admin in the windows world)
privileges so you will need to make setup sudo to allow the backuppc
user to run wakeonlan as root or you need to setuid the wakeonlan
binary. (bad idea)

-- 
Tim Fletcher <tim AT night-shade.org DOT uk>


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
BackupPC-users mailing list
BackupPC-users AT lists.sourceforge DOT net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/