From: Alan J. Pippin Date: Fri, 20 Aug 2021 22:03:56 +0000 (-0600) Subject: Need to be root to destroy snapshots X-Git-Url: http://git.pippins.net/embedvideo/.git/%22%22.%24thumbnail.%22/%7Bview%7D?a=commitdiff_plain;h=d343c96fd4190924d3407cc9de1a12f66491670c;p=zfs-ubuntu%2F.git Need to be root to destroy snapshots Change-Id: I59d7cc59785b99219af3bdf1163461e738ee1d9c --- diff --git a/zfs-rm-all-snaps b/zfs-rm-all-snaps index 868bba5..5bc0609 100755 --- a/zfs-rm-all-snaps +++ b/zfs-rm-all-snaps @@ -29,7 +29,7 @@ read for snap in `zfs list -t snapshot 2>/dev/null | grep "^$zfs_pool" | grep "$snap_pattern" | awk '{print $1}'`; do echo " destroying snapshot: $snap" - zfs destroy "$snap" 2>/dev/null + sudo zfs destroy "$snap" 2>/dev/null done echo "-> Snapshots removed"