BackupPC-users

Re: [BackupPC-users] tar on localhost (and shell escaping)

2010-11-11 15:29:42
Subject: Re: [BackupPC-users] tar on localhost (and shell escaping)
From: John Rouillard <rouilj-backuppc AT renesys DOT com>
To: "General list for user discussion, questions and support" <backuppc-users AT lists.sourceforge DOT net>
Date: Thu, 11 Nov 2010 19:58:53 +0000
On Thu, Nov 11, 2010 at 02:43:12PM -0500, Frank J. Gómez wrote:
> Paranoid person that I am, I followed the instructions here (
> http://backuppc.sourceforge.net/faq/localhost.html) to run tar in a way that
> would not allow the backuppc user to become root.
> 
> I tried wrapping tar up using the script in the documentation:
> #!/bin/sh -f
> exec /bin/tar -c $*

Hmm, on first glance I would have expected the $* to be "$@"

Try:

   exec /bin/tar -c "$@"

-- 
                                -- rouilj

John Rouillard       System Administrator
Renesys Corporation  603-244-9084 (cell)  603-643-9300 x 111

------------------------------------------------------------------------------
Centralized Desktop Delivery: Dell and VMware Reference Architecture
Simplifying enterprise desktop deployment and management using
Dell EqualLogic storage and VMware View: A highly scalable, end-to-end
client virtualization framework. Read more!
http://p.sf.net/sfu/dell-eql-dev2dev
_______________________________________________
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/