029c78978ae6bc21f3a87efa2537fe733b6ff9a9
[openwrt.git] / obsolete-buildroot / sources / openssh.server.preinst
1 #!/bin/sh
2
3 # Make sure password and group databases exist
4 if [ ! -f /etc/passwd ]; then
5 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
6 [ -f /etc/group ] || echo -e "root:x:0:\nnogroup:x:65534:\n" > /etc/group
7 echo "\n\nNOTICE: SSH requires proper root password to be configured, set it now."
8 passwd
9 fi
10
This page took 0.040285 seconds and 3 git commands to generate.