- Code: Select all
/Users/adminkurt/Documents/zfstools-master/lib/zfstools/dataset.rb:29:in `popen': No such file or directory - zfs (Errno::ENOENT)
from /Users/adminkurt/Documents/zfstools-master/lib/zfstools/dataset.rb:29:in `list'
from /Users/adminkurt/Documents/zfstools-master/lib/zfstools.rb:132:in `find_eligible_datasets'
from /Users/adminkurt/Documents/zfstools-master/bin/zfs-auto-snapshot:65:in `<main>'
Here is the plist file 'com.zfstools.zfs-auto-snapshot.frequent.plist':
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Disabled</key>
<true/>
<key>Label</key>
<string>com.zfstools.zfs-auto-snapshot.frequent</string>
<key>Nice</key>
<integer>1</integer>
<key>ProgramArguments</key>
<array>
<string>/Users/adminkurt/Documents/zfstools-master/bin/zfs-auto-snapshot</string>
<string>frequent</string>
<string>4</string>
</array>
<key>StandardErrorPath</key>
<string>/Users/adminkurt/Documents/zfstools-master/logs/zfs-auto-snapshot.frequent.err</string>
<key>StandardOutPath</key>
<string>/Users/adminkurt/Documents/zfstools-master/logs/zfs-auto-snapshot.frequent.out</string>
<key>StartCalendarInterval</key>
<array>
<dict>
<key>Minute</key>
<integer>15</integer>
</dict>
<dict>
<key>Minute</key>
<integer>30</integer>
</dict>
<dict>
<key>Minute</key>
<integer>45</integer>
</dict>
</array>
</dict>
</plist>
I'm guessing that it is trying to run as my admin user 'adminkurt', since the plist is stored under /Users/adminkurt/Library/LaunchAgents, not in the system location. I'd like to avoid running it as root, so I thought I would use the ZFS delegation feature:
- Code: Select all
sudo zfs allow -u adminkurt list,status,snapshot,get,destroy tank
but I get this error message:
- Code: Select all
cannot set permissions on 'tank': operation not applicable to datasets of this type
I tried changing the command to
- Code: Select all
sudo zfs allow -u adminkurt list,status,snapshot,get,destroy tank/HOME
but then it still gives
- Code: Select all
cannot set permissions on 'tank/HOME': operation not applicable to datasets of this type
Any suggestions for how to accomplish my goal? Thanks,
Kurt