summaryrefslogtreecommitdiffstats
path: root/services/Makefile
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 /services/Makefile
parent3e891635d9d67193144b8c48c466dd9a31a7261c (diff)
parent68610b9c200dc54e05f591b956ed162f5331f692 (diff)
Merge branch 'master' of https://github.com/krebscode/painload
Diffstat (limited to 'services/Makefile')
-rw-r--r--services/Makefile1
1 files changed, 1 insertions, 0 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'