mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
Fix problems in umask
You must set the umask to not spill the directory permissions $> umask 022 $> echo asdf1234 > password $> ls -la password -rw-r--r-- 1 bebe bebe 9 2. Dez 21:29 password $> rm password $> (umask 077; echo "my-super-safe-password" > password) $> ls -la password -rw------- 1 bebe bebe 23 Dec 2 21:28 password
This commit is contained in:
parent
ef3c145b7b
commit
89ae4455bb
1 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ used flakes:
|
|||
|
||||
```bash
|
||||
# enter disk encryption key
|
||||
echo "my-super-safe-password" > /tmp/disk.key
|
||||
(umask 077; echo "my-super-safe-password" > /tmp/disk.key)
|
||||
|
||||
temp=$(mktemp -d)
|
||||
# ssh-host keys
|
||||
|
@ -98,7 +98,7 @@ used flakes:
|
|||
1. existing host
|
||||
|
||||
```bash
|
||||
echo "my-super-safe-password" > /tmp/disk.key
|
||||
(umask 077; echo "my-super-safe-password" > /tmp/disk.key)
|
||||
temp=$(mktemp -d)
|
||||
find $temp -printf '%M %p\n'
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue