summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-07-17 13:19:49 +0200
committermakefu <root@pigstarter.de>2013-07-17 13:19:49 +0200
commit77ca1ae2b0c41e6b245224645e27fb78fa95045a (patch)
treedf6623ed748de3df70a4e76c263a70fa4fc4b59c
parent3e891635d9d67193144b8c48c466dd9a31a7261c (diff)
parent68610b9c200dc54e05f591b956ed162f5331f692 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
-rw-r--r--services/Makefile1
-rw-r--r--services/README.md5
-rw-r--r--services/etc/services/bootstrap5
3 files changed, 9 insertions, 2 deletions
diff --git a/services/Makefile b/services/Makefile
index a4db7df1..c537b50d 100644
--- a/services/Makefile
+++ b/services/Makefile
@@ -26,6 +26,7 @@ $(services_home)/.ssh/authorized_keys: $(services_home)/.ssh $(authorized_keys_f
cp $(authorized_keys_file) $(services_home)/.ssh/authorized_keys
@echo "restricting authorized_keys..."
@sed -i 's#^#command="/bin/cat $(services_home)/services.txt",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty #' $(services_home)/.ssh/authorized_keys
+ chown services:services $(authorized_keys_file)
$(services_home)/services.txt:
@echo 'make sure to configure the services correctly in $(services_home)/services.txt'
diff --git a/services/README.md b/services/README.md
index e0769bce..1fc2bfe3 100644
--- a/services/README.md
+++ b/services/README.md
@@ -1,5 +1,10 @@
# //services
+## install service user
+
+ make create-service-user service-user
+ $EDITOR /opt/services/services.txt
+
## install and run test-server.py as systemd service
### install dependencies
diff --git a/services/etc/services/bootstrap b/services/etc/services/bootstrap
index f6efe761..65f6b541 100644
--- a/services/etc/services/bootstrap
+++ b/services/etc/services/bootstrap
@@ -1,6 +1,6 @@
services://destroy
services://ire
-services://darth_serious:22
+services://darth:22
services://pigstarter:22
services://incept:22
services://rage:22
@@ -8,4 +8,5 @@ services://devstar:22
services://heidi:22
services://geisha:22
services://slowpoke:22
-services://no_omo:22
+services://omo:22
+services://pic:22