From ba1b347f23818adb5ee8bb3362b4a1623dd877f2 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Tue, 17 May 2016 11:12:18 +0200 Subject: Disable the SSH daemon by default and use a tweak to start it on demand. The passwords for users 'live' and 'root' are easy to guess. When you use the Slackware Live Edition on a public network, you do not want people to use an exposed SSH login. If you still want to have the SSH daemon enabled on boot, use the 'tweak' boot parameter and provide a 'ssh' value as follows: "tweak=ssh" This can be combined with other tweaks of course, all comma-separated. --- liveinit | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'liveinit') diff --git a/liveinit b/liveinit index 841381d..aee9f6f 100755 --- a/liveinit +++ b/liveinit @@ -196,6 +196,7 @@ for ARG in $(cat /proc/cmdline); do # nga: no glamor 2d acceleration. # tpb: trackpoint scrolling while pressing middle mouse button. # syn: start synaptics daemon and extend X.Org capabilities. + # ssh: start SSH daemon (disabled by default). TWEAKS=$(echo $ARG | cut -f2 -d=) ;; tz=*) @@ -967,6 +968,9 @@ Section "InputClass" Option "VertEdgeScroll" "1" EndSection EOT + elif [ "$TWEAK" = "ssh" ]; then + # Enable SSH daemon (disabled by default for security reasons): + chmod +x /mnt/overlay/etc/rc.d/rc.sshd fi done # End Tweaks. -- cgit v1.2.3