Date:2010-07-27 05:23:47 (8 years 4 months ago)
Author:cshore
Commit:2cba4ad103275fcc7fc77a726b004aeec26f6c82
Message:[package] dropbear: Add RootLogin parameter to control whether ssh logins as root are allowed.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22393 3c298f89-4303-0410-b956-a3cf2f4a3e73
Files: package/dropbear/files/dropbear.init (1 diff)

Change Details

package/dropbear/files/dropbear.init
5353    local rootpassauth
5454    config_get_bool rootpassauth "${section}" RootPasswordAuth 1
5555    [ "${rootpassauth}" -eq 0 ] && norootpasswd=1
56    local rootloginallowed
57    local norootlogin
58    config_get_bool rootloginallowed "${section}" RootLogin 1
59    [ "${rootloginallowed}" -eq 0 ] && norootlogin=1
5660    # concatenate parameters
5761    local args
58    args="${nopasswd:+-s }${norootpasswd:+-g }${port:+-p ${port} }${bannerfile:+-b $bannerfile }${gatewayports:+-a }-P /var/run/${NAME}.${PIDCOUNT}.pid"
62    args="${nopasswd:+-s }${norootpasswd:+-g }${norootlogin:+-w }${port:+-p ${port} }${bannerfile:+-b $bannerfile }${gatewayports:+-a }-P /var/run/${NAME}.${PIDCOUNT}.pid"
5963
6064    # execute program and return its exit code
6165    [ "${verbosed}" -ne 0 ] && echo "${initscript}: section ${section} starting ${PROG} ${args}"

Archive Download the corresponding diff file



interactive