fix permissions of new tomb

and notice if tomb hasn't right permissions

in future we should check permissions of tomb from the suid commandline
this way we can also change its permissions and make it ours
This commit is contained in:
Jaromil 2011-05-13 16:30:19 +02:00
parent e8c7120fa4
commit 1affad00d5
2 changed files with 2 additions and 2 deletions

View File

@ -442,7 +442,7 @@ create_tomb() {
# set permissions on the tomb
sudo chown $UID:$GID ${tombfile}
sudo chmod go-rwx ${tombfile}
sudo chmod 600 ${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"

View File

@ -221,7 +221,7 @@ if [ $1 ]; then # is it a file?
exit 1
fi
else
tomb-notify "Not a real Tomb." "We found no real bones in there."
tomb-notify "Not a real Tomb." "We found no real bones in there, or the tomb file permissions won't allow us in."
exit 1
fi