Hi all,
I'm putting together a script to create zfs snapshots after a backup has been
completed (via Apple TimeMachine or rsync for example). When I'm logged into
the machine, I can only access the "zfs snapshot" command as root via "sudo" or
"pfexec". Neither of these are available directly fr
t for OpenIndiana
Subject: [OpenIndiana-discuss] zfs snapshot script
Hi all,
I'm putting together a script to create zfs snapshots after a backup has
been completed (via Apple TimeMachine or rsync for example). When I'm logged
into the machine, I can only access the "zfs snapshot&
t: Sunday, May 01, 2011 9:46 AM
> To: Discussion list for OpenIndiana
> Subject: [OpenIndiana-discuss] zfs snapshot script
>
> Hi all,
>
> I'm putting together a script to create zfs snapshots after a backup has
> been completed (via Apple TimeMachine or rsync for example).
-Original Message-
From: Matt Connolly [mailto:matt.connolly...@gmail.com]
Sent: Sunday, May 01, 2011 10:22 AM
To: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] zfs snapshot script
On 01/05/2011, at 11:48 PM, Dan Swartzendruber wrote:
> Hmmm, well, what I'
ssh -t host 'sudo.zfs snapshot. ..'
That should do what you Jews. Sudo requires a tty that you don't get when
running commands unless you include -t.
Sent from my Droid Incredible.
Matt Connolly wrote:
>Hi all,
>
>I'm putting together a script to create zfs snapshots after a backup has been
ly...@gmail.com]
>Sent: Sunday, May 01, 2011 9:46 AM
>To: Discussion list for OpenIndiana
>Subject: [OpenIndiana-discuss] zfs snapshot script
>
>Hi all,
>
>I'm putting together a script to create zfs snapshots after a backup has
>been completed (via Apple TimeMach
Ugh. Vlingo keyboard has some strange autocorrections. Switched back to android
keyboard. That should have said "that should do what you want."
Sent from my Droid Incredible.
Gregory Youngblood wrote:
>ssh -t host 'sudo.zfs snapshot. ..'
>
>That should do what you Jews. Sudo requires a tty t
"Are there any permission tricks that would allow a script executed via ssh
to execute "zfs snapshot"??"
It's called setuid bit. There are a host of security concerns around setuid
scripts and programs, so consider how you set things up and what your risks are.
Here's a rough approximation of
On Sun, May 01, 2011 at 08:23:25AM -0700, Reginald Beardsley wrote:
> "Are there any permission tricks that would allow a script executed via ssh
> to execute "zfs snapshot"??"
>
> It's called setuid bit. There are a host of security concerns
> around setuid scripts and programs, so consider how
> From: Matt Connolly [mailto:matt.connolly...@gmail.com]
>
> client$ ssh user@host sudo zfs snapshot blah -> fails = sudo: no tty
present
> and no askpass program specified
# Note: must have a TTY to run sudo, hence the double -t
ssh -t -t user@host 'sudo blah'
On 5/1/2011 9:46 AM, Matt Connolly wrote:
> Hi all,
>
> I'm putting together a script to create zfs snapshots after a backup has been
> completed (via Apple TimeMachine or rsync for example). When I'm logged into
> the machine, I can only access the "zfs snapshot" command as root via "sudo"
> o
diana-discuss] zfs snapshot script
On 5/1/2011 9:46 AM, Matt Connolly wrote:
> Hi all,
>
> I'm putting together a script to create zfs snapshots after a backup has
been completed (via Apple TimeMachine or rsync for example). When I'm logged
into the machine, I can only access the &
On 05/01/2011 02:10 PM, Dan Swartzendruber wrote:
>
> Can zfssnap role be restricted to specific filesystems? If not, I'd be
> concerned about allowing too much power...
If that's an issue (I have no idea, haven't investigated), one option
would be to match users in sshd_config and use the Force
On May 1, 2011, at 1:34 PM, Jamon Camisso wrote:
> On 05/01/2011 02:10 PM, Dan Swartzendruber wrote:
>>
>> Can zfssnap role be restricted to specific filesystems? If not, I'd be
>> concerned about allowing too much power...
>
> If that's an issue (I have no idea, haven't investigated), one opt
Thanks Gary - best answer!!
"zfs allow" is exactly what I was looking for. (also great to learn the extra
-t trick with sudo, thanks to others).
And yes, "zfs allow" does apply only to one filesystem (or optionally including
its descendants).
Best,
Matt.
On 02/05/2011, at 1:38 AM, Gary Mills
Good point!
-Original Message-
From: Matt Connolly [mailto:matt.connolly...@gmail.com]
Sent: Sunday, May 01, 2011 5:14 PM
To: Discussion list for OpenIndiana
Cc: Discussion list for OpenIndiana
Subject: Re: [OpenIndiana-discuss] zfs snapshot script
Thanks Gary - best answer!!
&quo
t Connolly [mailto:matt.connolly...@gmail.com]
Sent: Sunday, May 01, 2011 4:46 PM
To: Discussion list for OpenIndiana
Subject: [OpenIndiana-discuss] zfs snapshot script
Hi all,
I'm putting together a script to create zfs snapshots after a backup has
been completed (via Apple TimeMachi
Madalin GEANA wrote:
Hello,
Have you tried this one:
http://www.cuddletech.com/blog/pivot/entry.php?id=989
works flawlessly - you just have to fix the date command in variable DATE,
format it as you want, preferably without spaces (use underline '_')
This seems to only maintain one snapsh
18 matches
Mail list logo