mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-02-02 11:58:28 +00:00
fixed chown and chmod tomb file path, that prevents from change the owner and permissions on newly created tomb
This commit is contained in:
parent
103788f2da
commit
fdcdd52407
4
src/tomb
4
src/tomb
@ -495,8 +495,8 @@ create_tomb() {
|
|||||||
|
|
||||||
# set permissions on the tomb
|
# set permissions on the tomb
|
||||||
ME=${SUDO_USER:-$(whoami)}
|
ME=${SUDO_USER:-$(whoami)}
|
||||||
chmod 0600 ${tombfile}
|
chmod 0600 "${tombdir}/${tombfile}"
|
||||||
chown $(id -u $ME):$(id -g $ME) ${tombfile}
|
chown $(id -u $ME):$(id -g $ME) "${tombdir}/${tombfile}"
|
||||||
|
|
||||||
act "done creating $tombname encrypted storage (using Luks dm-crypt AES/SHA256)"
|
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"
|
notice "Your tomb is ready in ${tombdir}/${tombfile} and secured with key ${tombfile}.key"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user