mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-12-27 19:54:58 +00:00
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:
parent
e8c7120fa4
commit
1affad00d5
2
src/tomb
2
src/tomb
@ -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"
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user