All pastes #429880 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-04-08 15:21 UTC
rendered paste body
root@snowflake /etc/control.d/facilities # cat sftp
#!/bin/sh

. /etc/control.d/functions

CONFIG=/etc/openssh/sshd_config

new_subst enabled \
        '^Subsystem[[:space:]]+sftp[[:space:]]+/usr/lib/openssh/sftp-server$' \
        's,^#\(Subsystem[[:space:]]\+sftp[[:space:]]\+/usr/lib/openssh/sftp-server\),\1,'
new_subst disabled \
        '^#Subsystem[[:space:]]+sftp[[:space:]]+/usr/lib/openssh/sftp-server$' \
        's,^\(Subsystem[[:space:]]\+sftp[[:space:]]\+/usr/lib/openssh/sftp-server\),#\1,'

new_help enabled "Enable SFTP subsystem"
new_help disabled "Disable SFTP subsystem"

control_subst "$CONFIG" "$*"
root@snowflake /etc/control.d/facilities #