I hereby claim:
- I am daks on github.
- I am daks (https://keybase.io/daks) on keybase.
- I have a public key whose fingerprint is A583 DC91 EE47 ABBC FF02 9D5A 8EB2 B426 5FBB C3A7
To claim this, I am signing this object:
| #!/bin/bash | |
| # This file must be executable to work! chmod 755! | |
| # | |
| # The LUKS key must exist as a file at /etc/.keys/${device}.key | |
| # Protect this directory: root as user/group, 400 as permissions | |
| # | |
| # Edit your autofs master file to include something like | |
| # /mnt/crypt /etc/auto.luks --timeout=600 | |
| # | |
| # Then you can access your LUKS encrypted disk with |
I hereby claim:
To claim this, I am signing this object:
| # sometimes, when changing permission or ownership you run a command like | |
| # chown -R www-data: .* | |
| # and it does what you want correctly: change ownership on dotfiles | |
| # but it does also what you don't want: change ownership on all files which are in the parent directory | |
| # which is really bad | |
| # the solution, taken from http://sysadminnotebook.blogspot.fr/2012/06/how-to-reset-folder-permissions-to.html | |
| # 1. on a snapshot or another Debian installation run | |
| find / -exec stat --format "chmod %a %n" {} \; > /tmp/restoreperms.sh |
| # /etc/udev/rules.d/10-udev-disks.rules | |
| # udev custom rule | |
| # using # udevadm info -a -p $(udevadm info -q path -n /dev/sda1) | |
| # I found the necessary information about my USB device | |
| # and take the necessary ones to make it unique (idVendor, idProduct, serial here) | |
| # when plugging the disk, nevermind the device name it gets (sda1, sdb1,...) udev creates /dev/mpd-disk and runs the script indicated | |
| KERNEL=="sd?1",ATTRS{idVendor}=="xxxx",ATTRS{idProduct}=="yyyy",ATTRS{serial}=="zzzzzzzzzzzz",SYMLINK+="mpd-disk",RUN+="/root/bin/hdparm-mpd-disk.sh" |