Home | History | Annotate | Download | only in cygwin

Lines Matching refs:SYSCONFDIR

59 SYSCONFDIR=/etc
76 if [ ! -f "${SYSCONFDIR}/ssh_host_key" ]
78 csih_inform "Generating ${SYSCONFDIR}/ssh_host_key"
79 if ! /usr/bin/ssh-keygen -t rsa1 -f ${SYSCONFDIR}/ssh_host_key -N '' > /dev/null
81 csih_warning "Generating ${SYSCONFDIR}/ssh_host_key failed!"
86 if [ ! -f "${SYSCONFDIR}/ssh_host_rsa_key" ]
88 csih_inform "Generating ${SYSCONFDIR}/ssh_host_rsa_key"
89 if ! /usr/bin/ssh-keygen -t rsa -f ${SYSCONFDIR}/ssh_host_rsa_key -N '' > /dev/null
91 csih_warning "Generating ${SYSCONFDIR}/ssh_host_key failed!"
96 if [ ! -f "${SYSCONFDIR}/ssh_host_dsa_key" ]
98 csih_inform "Generating ${SYSCONFDIR}/ssh_host_dsa_key"
99 if ! /usr/bin/ssh-keygen -t dsa -f ${SYSCONFDIR}/ssh_host_dsa_key -N '' > /dev/null
101 csih_warning "Generating ${SYSCONFDIR}/ssh_host_key failed!"
106 if [ ! -f "${SYSCONFDIR}/ssh_host_ecdsa_key" ]
108 csih_inform "Generating ${SYSCONFDIR}/ssh_host_ecdsa_key"
109 if ! /usr/bin/ssh-keygen -t ecdsa -f ${SYSCONFDIR}/ssh_host_ecdsa_key -N '' > /dev/null
111 csih_warning "Generating ${SYSCONFDIR}/ssh_host_key failed!"
202 csih_error_recoverable "Check your ${SYSCONFDIR}/sshd_config file!"
213 if /usr/bin/cmp "${SYSCONFDIR}/sshd_config" "${SYSCONFDIR}/defaults/${SYSCONFDIR}/sshd_config" >/dev/null 2>&1
215 csih_inform "Updating ${SYSCONFDIR}/sshd_config file"
216 sshdconfig_tmp=${SYSCONFDIR}/sshd_config.$$
220 < ${SYSCONFDIR}/sshd_config \
222 if ! /usr/bin/mv "${sshdconfig_tmp}" ${SYSCONFDIR}/sshd_config
225 csih_warning "Check your ${SYSCONFDIR}/sshd_config file!"
230 echo >> ${SYSCONFDIR}/sshd_config
231 if ! echo "UsePrivilegeSeparation ${privsep_used}" >> ${SYSCONFDIR}/sshd_config
234 csih_warning "Check your ${SYSCONFDIR}/sshd_config file!"
245 local _inetcnf="${SYSCONFDIR}/inetd.conf"
246 local _inetcnf_tmp="${SYSCONFDIR}/inetd.conf.$$"
247 local _inetcnf_dir="${SYSCONFDIR}/inetd.d"
282 csih_install_config "${_sshd_inetd_conf}" "${SYSCONFDIR}/defaults"
283 if /usr/bin/cmp "${SYSCONFDIR}/defaults${_sshd_inetd_conf}" "${_sshd_inetd_conf}" >/dev/null 2>&1
377 for i in "${SYSCONFDIR}"/ssh_config "${SYSCONFDIR}"/sshd_config "${SYSCONFDIR}"/ssh_host_*key "${SYSCONFDIR}"/ssh_host_*key.pub
665 # Check for ${SYSCONFDIR} directory
666 csih_make_dir "${SYSCONFDIR}" "Cannot create global configuration files."
667 if ! /usr/bin/chmod 775 "${SYSCONFDIR}" >/dev/null 2>&1
669 csih_warning "Can't set permissions on ${SYSCONFDIR}!"
672 if ! /usr/bin/setfacl -m u:system:rwx "${SYSCONFDIR}" >/dev/null 2>&1
674 csih_warning "Can't set extended permissions on ${SYSCONFDIR}!"
725 csih_install_config "${SYSCONFDIR}/ssh_config" "${SYSCONFDIR}/defaults" || let ++warning_cnt
726 if /usr/bin/cmp "${SYSCONFDIR}/ssh_config" "${SYSCONFDIR}/defaults/${SYSCONFDIR}/ssh_config" >/dev/null 2>&1
730 csih_inform "Updating ${SYSCONFDIR}/ssh_config file with requested port"
731 echo "Host localhost" >> ${SYSCONFDIR}/ssh_config
732 echo " Port ${port_number}" >> ${SYSCONFDIR}/ssh_config
737 csih_install_config "${SYSCONFDIR}/sshd_config" "${SYSCONFDIR}/defaults" || let ++warning_cnt
738 if ! /usr/bin/cmp "${SYSCONFDIR}/sshd_config" "${SYSCONFDIR}/defaults/${SYSCONFDIR}/sshd_config" >/dev/null 2>&1
740 /usr/bin/grep -q UsePrivilegeSeparation ${SYSCONFDIR}/sshd_config && privsep_configured=yes