#
df -F zfs $d > /dev/null 2>&1
if [ $? = 0 ]; then
- chmod A+user:$uid:rx:allow $d/acl-dir
- chmod A+user:root:wx:allow $d/acl-dir
- chmod A+user:nobody:rwx:deny $d/acl-dir
- chmod A+user:nobody:rwx:deny $d/bconsole
- chmod A+group:nogroup:x:allow $d/bconsole
+ /bin/chmod A+user:$uid:rx:allow $d/acl-dir
+ /bin/chmod A+user:root:wx:allow $d/acl-dir
+ /bin/chmod A+user:nobody:rwx:deny $d/acl-dir
+ /bin/chmod A+user:nobody:rwx:deny $d/bconsole
+ /bin/chmod A+group:nogroup:x:allow $d/bconsole
else
- chmod A+user:$uid:r-x $d/acl-dir
- chmod A+user:root:-wx $d/acl-dir
- chmod A+user:nobody:--- $d/acl-dir
- chmod A+user:nobody:--- $d/bconsole
- chmod A+group:nogroup:--x $d/bconsole
+ /bin/chmod A+user:$uid:r-x $d/acl-dir
+ /bin/chmod A+user:root:-wx $d/acl-dir
+ /bin/chmod A+user:nobody:--- $d/acl-dir
+ /bin/chmod A+user:nobody:--- $d/bconsole
+ /bin/chmod A+group:nogroup:--x $d/bconsole
fi
- runat $d/other 'cat > bacula.test' << EOF
+ cp ${cwd}/bin/bconsole $d/other
+ /bin/runat $d/other 'cat > bacula.test' << EOF
rulez
EOF
( cd $cwd/build
- ls -ldv -R acl > $cwd/tmp/org
- runat $d/other 'cat bacula.test' > $cwd/tmp/attr.org
+ /bin/ls -ldv -R acl > $cwd/tmp/org
+ /bin/runat $d/other 'cat bacula.test' > $cwd/tmp/attr.org
)
;;
esac
;;
SunOS)
( cd $cwd/tmp/bacula-restores/$cwd/build
- ls -ldv -R acl > $cwd/tmp/new
- runat $d/other 'cat bacula.test' > $cwd/tmp/attr.new
+ /bin/ls -ldv -R acl > $cwd/tmp/new
+ /bin/runat $d/other 'cat bacula.test' > $cwd/tmp/attr.new
)
;;
esac