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 <matt.connolly...@gmail.com> 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" >or "pfexec". Neither of these are available directly from a ssh command. For >example: > >client$ ssh user@server >server$ sudo zfs snapshot blah@blah -> works >..or.. >server$ pfexec zfs snapshot blah@blah -> works > >..but.. > >client$ ssh user@host zfs snapshot blah -> fails = permission denied >client$ ssh user@host pfexec zfs snapshot blah -> fails = permission denied >client$ ssh user@host sudo zfs snapshot blah -> fails = sudo: no tty present >and no askpass program specified > >What would be the best practice for creating a zfs snapshot based on an >external trigger (eg: message from client after a successful backup). > > >Regards, >Matt > > > > > >_______________________________________________ >OpenIndiana-discuss mailing list >OpenIndiana-discuss@openindiana.org >http://openindiana.org/mailman/listinfo/openindiana-discuss _______________________________________________ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss