tMerge pull request #35 from davinerd/fix_permissions_tomb - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit d979ebc332765f554b0e63bf517177ac845c7ab3 DIR parent ce7edc1b6321196088c7447c8b3612dc5dd86e7a HTML Author: nignux <nignux@freaknet.org> Date: Mon, 29 Aug 2011 05:09:03 -0700 Merge pull request #35 from davinerd/fix_permissions_tomb fixed chown and chmod tomb file Diffstat: M src/tomb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- DIR diff --git a/src/tomb b/src/tomb t@@ -500,8 +500,8 @@ create_tomb() { # set permissions on the tomb ME=${SUDO_USER:-$(whoami)} - chmod 0600 ${tombfile} - chown $(id -u $ME):$(id -g $ME) ${tombfile} + chmod 0600 "${tombdir}/${tombfile}" + chown $(id -u $ME):$(id -g $ME) "${tombdir}/${tombfile}" act "done creating $tombname encrypted storage (using Luks dm-crypt AES/SHA256)" notice "Your tomb is ready in ${tombdir}/${tombfile} and secured with key ${tombfile}.key"