From 9feaa112fde3c0306def6676863fe62b78f6a794 Mon Sep 17 00:00:00 2001 From: mbm Date: Fri, 16 Jul 2004 05:43:10 +0000 Subject: openssh patches from below0 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@99 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- obsolete-buildroot/sources/openssh.server.preinst | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 obsolete-buildroot/sources/openssh.server.preinst (limited to 'obsolete-buildroot/sources/openssh.server.preinst') diff --git a/obsolete-buildroot/sources/openssh.server.preinst b/obsolete-buildroot/sources/openssh.server.preinst new file mode 100644 index 0000000000..029c78978a --- /dev/null +++ b/obsolete-buildroot/sources/openssh.server.preinst @@ -0,0 +1,10 @@ +#!/bin/sh + +# Make sure password and group databases exist +if [ ! -f /etc/passwd ]; then + echo -e "root::0:0::/tmp:/bin/sh\nnobody:x:65534:65534:nobody:/tmp:/bin/sh\nsshd:x:100:65534:sshd:/var:/bin/false\n" > /etc/passwd + [ -f /etc/group ] || echo -e "root:x:0:\nnogroup:x:65534:\n" > /etc/group + echo "\n\nNOTICE: SSH requires proper root password to be configured, set it now." + passwd +fi + -- cgit v1.2.3