mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-19 19:15:14 +00:00
Merge pull request #35 from davinerd/fix_permissions_tomb
fixed chown and chmod tomb file
This commit is contained in:
commit
d979ebc332
4
src/tomb
4
src/tomb
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user