summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-04-08 17:43:40 (EDT)
committer P. J. McDermott <pj@pehjota.net>2016-04-08 17:43:40 (EDT)
commit7e171e6a12df6c1a10a88dc60c3f8df2e37e4d57 (patch)
tree0b5f3b4cf41c1264a253f8379e07d755c7a03fb2
parent8398ae7125d0f7176fa015517498a216cf26a85d (diff)
downloadpc-inst-7e171e6a12df6c1a10a88dc60c3f8df2e37e4d57.zip
pc-inst-7e171e6a12df6c1a10a88dc60c3f8df2e37e4d57.tar.gz
pc-inst-7e171e6a12df6c1a10a88dc60c3f8df2e37e4d57.tar.bz2
alsvid2: Don't rely on usernames in host
-rw-r--r--hosts/alsvid2006
1 files changed, 3 insertions, 3 deletions
diff --git a/hosts/alsvid200 b/hosts/alsvid200
index ab3d9ec..cd93f76 100644
--- a/hosts/alsvid200
+++ b/hosts/alsvid200
@@ -171,7 +171,7 @@ do_postinst()
http://product-files.libiquity.com/taurinus/boot-splash/x200/background.png
# Use temporary configuation SSH key.
- install -d -o pj -g pj -m 0700 "${target}/home/pj/.ssh" || return 1
+ install -d -o 1000 -g 1000 -m 0700 "${target}/home/pj/.ssh" || return 1
cat >"${target}/home/pj/.ssh/id_rsa" <<-EOF
-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQCzAF0zqeS2X0TuVOIxqMec3lMzZy/MHQswPP+BQkmc2D3YVb2x
@@ -230,9 +230,9 @@ do_postinst()
# Generate target's SSH keypair.
rm -f "${target}/home/pj/.ssh/id_rsa" \
"${target}/home/pj/.ssh/id_rsa.pub" || return 1
- install -o pj -g pj -m 0600 '/home/pj/.ssh/id_rsa' \
+ install -o 1000 -g 1000 -m 0600 '/home/pj/.ssh/id_rsa' \
"${target}/home/pj/.ssh/id_rsa" || return 1
- install -o pj -g pj -m 0600 '/home/pj/.ssh/id_rsa.pub' \
+ install -o 1000 -g 1000 -m 0600 '/home/pj/.ssh/id_rsa.pub' \
"${target}/home/pj/.ssh/id_rsa.pub" || return 1
#in_target ssh-keygen -b 4096 -C pj@alsvid200 -t rsa \
# -f /home/pj/.ssh/id_rsa </dev/null || return 1