summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-01-29 15:47:26 +0000
committermakefu <root@pigstarter.de>2013-01-29 15:47:26 +0000
commitf9a3b1b51a469ca56f9d573832ae50c7c3e38bd6 (patch)
treee4fd2f908a3f959009ccd7776b43107ab3aaf491
parent0173c77a25eff9f763b1ecbe055f628178867924 (diff)
fix useradd issues
-rw-r--r--services/Makefile14
-rw-r--r--services/authorized_keys1
2 files changed, 10 insertions, 5 deletions
diff --git a/services/Makefile b/services/Makefile
index 901769b8..3ef670a3 100644
--- a/services/Makefile
+++ b/services/Makefile
@@ -5,6 +5,15 @@ export host_key_file := test.key
export services_home := /opt/services
.PHONY: authorized_keys
+
+service-user: $(services_home)/services.txt $(services_home)/.ssh/authorized_keys
+ @echo 'also make sure that the user is created: make create-service-user'
+
+create-service-user:
+ mkdir -p $(services_home)
+ rmdir $(services_home)
+ useradd -m -r -l -f -1 -d $(services_home) services
+
$(services_home)/.ssh:
mkdir $@
chown services:services $@
@@ -18,11 +27,6 @@ $(services_home)/services.txt:
@echo 'make sure to configure the services correctly in $(services_home)/services.txt'
cp $(services_file) $(services_home)/services.txt
-service-user: $(services_home)/services.txt $(services_home)/.ssh/authorized_keys
- @echo 'also make sure that the user is created: make create-service-user'
-
-create-service-user:
- useradd -m -r -l -f -1 -d /opt/services services
test-client:
ssh localhost -p 1337 2>/dev/null
diff --git a/services/authorized_keys b/services/authorized_keys
index a7368693..404f6552 100644
--- a/services/authorized_keys
+++ b/services/authorized_keys
@@ -1,2 +1,3 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC7YrLdnXDRU2XEdZDu1BmgiT0Vaxplf3bfvSm+5o3g4AcR2yCv7h2D633c9uA0gq52EJ3V5m8B1ZcxqA0zqDptKwx+ZTMUGDls7StH5xpJyk9j5gf8DzyDLQPQG2IYszCH+8esKjo3BOFxfey8NaX+k6gvQsG3lyV0PjLvvIy4gDuMn6dPZfVAlwNYFOUNg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