fixed chown and chmod tomb file path, that prevents from change the owner and permissions on newly created tomb

This commit is contained in:
Anathema 2011-08-23 16:55:46 +02:00
parent 103788f2da
commit fdcdd52407

View File

@ -495,8 +495,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"