coffin

secure lan file storage on a device
git clone git://parazyd.org/coffin.git
Log | Files | Refs | Submodules | README | LICENSE

commit 8f5faba4b861d9d8ce5b50cae19cb6f219b9d81f
parent b7fbb10958f1c7aab9f940476f93963a9210d579
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 21 Mar 2016 23:54:08 +0100

rebranding to COFFIN

Diffstat:
MREADME.md | 11++++++-----
Mhelpers/gmakehook | 32++++++++++++++++----------------
Msrc/zlibs/features | 2+-
Msrc/zlibs/hooks | 2+-
4 files changed, 24 insertions(+), 23 deletions(-)

diff --git a/README.md b/README.md @@ -1,17 +1,18 @@ -# tombox +# COFFIN +Crypto Office Filer For Important Nuggets Secure dedicated LAN file storage made easy ## What is this nonsense? -A tombox is a dedicated device you can use to keep your files on a safe -and encrypted place. The core workflow of the tombox is having a key +A coffin is a dedicated device you can use to keep your files on a safe +and encrypted place. The core workflow of the coffin is having a key that is autodetected by the device once plugged in. Once detected, the -tombox will open the tomb that corresponds to that same key. +coffin will open the tomb that corresponds to that same key. Now, you are able to access your files on the LAN. Once you plug in your key again, that same tomb will be closed and your files are once again unreadable. ## Notes -* `gmakehook` can be used to create tombox hooks in a more user-friendly +* `gmakehook` can be used to create coffin hooks in a more user-friendly manner. It is a GUI (zenity) helper script. ## Usage diff --git a/helpers/gmakehook b/helpers/gmakehook @@ -1,6 +1,6 @@ #!/usr/bin/env zsh # -# Zenity helper script to make tombox hooks more user-friendly +# Zenity helper script to make coffin hooks more user-friendly # # ~ parazyd @@ -269,17 +269,17 @@ function _main { _clean cmnd=$(zenity \ --window-icon="$MONMORT" \ - --title="tombox hook helper" \ + --title="coffin hook helper" \ --list \ --hide-header \ - --text="tombox hook helper\nChoose what hook you want to create:" \ + --text="coffin hook helper\nChoose what hook you want to create:" \ --separator=" # " \ --column=Function \ --column=Description \ - "create" "a new tomb on the tombox" \ - "delete" "a tomb from the tombox" \ - "backup" "a tomb from the tombox" \ - "foobar" "on the tombox") + "create" "a new tomb on the coffin" \ + "delete" "a tomb from the coffin" \ + "backup" "a tomb from the coffin" \ + "foobar" "on the coffin") eval "_$cmnd" } @@ -291,7 +291,7 @@ function _create { --forms \ --text="Enter the info for your new tomb" \ --separator=":" \ - --add-entry="Tombox username" \ + --add-entry="coffin username" \ --add-entry="Tomb name" \ --add-entry="Tomb's size in MiB") if [[ $? = 1 ]]; then @@ -398,7 +398,7 @@ function _create { if [[ -n $posthook ]]; then print "$posthook" | sudo tee $coffindot/posthooks fi - _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in a tombox to activate it." + _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in a coffin to activate it." exec _main fi else @@ -411,7 +411,7 @@ function _create { if [[ -n $posthook ]]; then print "$posthook" | sudo tee $coffindot/posthooks fi - _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in the tombox to activate it." + _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in the coffin to activate it." exec _main fi } @@ -425,7 +425,7 @@ function _delete { --forms \ --text="Enter the info of your tomb" \ --separator=":" \ - --add-entry="Tombox username" \ + --add-entry="coffin username" \ --add-entry="Tomb name") if [[ $? = 1 ]]; then exec _main @@ -465,12 +465,12 @@ function _delete { _zeninfo "gmakehook" "Postponing..." && _umountkey && exec _main else print "delete:${UNDERTAKER}:${TOMBNAME}" | sudo tee $hooks - _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in a tombox to activate it." + _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in a coffin to activate it." exec _main fi else print "delete:${UNDERTAKER}:${TOMBNAME}" | sudo tee $hooks - _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in the tombox to activate it." + _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in the coffin to activate it." exec _main fi } @@ -484,7 +484,7 @@ function _backup { --forms \ --text="Enter the info of your tomb" \ --separator=":" \ - --add-entry="Tombox username" \ + --add-entry="coffin username" \ --add-entry="Tomb name") if [[ $? = 1 ]]; then exec _main @@ -524,12 +524,12 @@ function _backup { _zeninfo "gmakehook" "Postponing..." && _umountkey && exec _main else print "backup:${UNDERTAKER}:${TOMBNAME}" | sudo tee $hooks - _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in a tombox to activate it." + _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in a coffin to activate it." exec _main fi else print "backup:${UNDERTAKER}:${TOMBNAME}" | sudo tee $hooks - _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in the tombox to activate it." + _umountkey && _zeninfo "Success" "$hooks written successfully!\nPlug the USB key in the coffin to activate it." exec _main fi } diff --git a/src/zlibs/features b/src/zlibs/features @@ -3,7 +3,7 @@ check-webdav-hook() { fn check-webdav-hook - davconf="/etc/apache2/sites-available/tomboxdav.conf" + davconf="/etc/apache2/sites-available/coffindav.conf" if [[ $entry =~ webdav && -f $coffindot/webdav.conf ]]; then notice "Found WebDAV data. Setting up..." diff --git a/src/zlibs/hooks b/src/zlibs/hooks @@ -38,7 +38,7 @@ create-new-tomb() { if ! [[ ( $(id $undertaker) ) ]]; then _msg warning "No user called $undertaker found. Creating..." - useradd -G tombox -m -s /bin/nologin $undertaker + useradd -G coffin -m -s /bin/nologin $undertaker notice "Created user $undertaker" else notice "Found user $undertaker"