You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
415 B
10 lines
415 B
#!/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
|
|
|
|
|