fix(zfs): chmod 000 ZFS encryption keyfile per ZBM's docs (#1)
This commit is contained in:
parent
a5f32cfe76
commit
96ab417c72
2
setup.sh
2
setup.sh
@ -147,7 +147,7 @@ function no_zpool_exists () {
|
|||||||
function set_zpool_password () {
|
function set_zpool_password () {
|
||||||
# May or may not have a newline at the end, ZFS doesn't care
|
# May or may not have a newline at the end, ZFS doesn't care
|
||||||
printf -- '%s' 'password' > '/etc/zfs/'"${zpool_name}"'.key'
|
printf -- '%s' 'password' > '/etc/zfs/'"${zpool_name}"'.key'
|
||||||
chmod '600' '/etc/zfs/'"${zpool_name}"'.key'
|
chmod '000' '/etc/zfs/'"${zpool_name}"'.key'
|
||||||
}
|
}
|
||||||
|
|
||||||
function import_pool () {
|
function import_pool () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user