diff options
author | Colin Watson <cjwatson@debian.org> | 2005-05-30 22:13:03 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2005-05-30 22:13:03 +0000 |
commit | 4e1e258d1f5745f3dc05ead3cb834c445e6e8818 (patch) | |
tree | bfbc91107d6bfe7b2a68d8701562e59856116a6a /contrib/cygwin/ssh-host-config | |
parent | 4a20a0b23bd0e1db5e69f27c65aaa11a5a2eacd0 (diff) | |
parent | a55bd782aa819b7f5ae716de000f19f4f531850e (diff) |
Merge 4.1p1 to the trunk.
Diffstat (limited to 'contrib/cygwin/ssh-host-config')
-rw-r--r-- | contrib/cygwin/ssh-host-config | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/contrib/cygwin/ssh-host-config b/contrib/cygwin/ssh-host-config index c7164f610..fbfb5c195 100644 --- a/contrib/cygwin/ssh-host-config +++ b/contrib/cygwin/ssh-host-config | |||
@@ -449,12 +449,10 @@ then | |||
449 | echo "Should this script create a new local account 'sshd_server' which has" | 449 | echo "Should this script create a new local account 'sshd_server' which has" |
450 | if request "the required privileges?" | 450 | if request "the required privileges?" |
451 | then | 451 | then |
452 | _admingroup=`awk -F: '{if ( $1 != "root" && $2 == "S-1-5-32-544" ) print $1;}' ${SYSCONFDIR}/group` | 452 | _admingroup=`mkgroup -l | awk -F: '{if ( $2 == "S-1-5-32-544" ) print $1;}' ` |
453 | if [ -z "${_admingroup}" ] | 453 | if [ -z "${_admingroup}" ] |
454 | then | 454 | then |
455 | echo "There's no group with SID S-1-5-32-544 (Local administrators group) in" | 455 | echo "mkgroup -l produces no group with SID S-1-5-32-544 (Local administrators group)." |
456 | echo "your ${SYSCONFDIR}/group file. Please regenerate this entry using 'mkgroup -l'" | ||
457 | echo "and restart this script." | ||
458 | exit 1 | 456 | exit 1 |
459 | fi | 457 | fi |
460 | dos_var_empty=`cygpath -w ${LOCALSTATEDIR}/empty` | 458 | dos_var_empty=`cygpath -w ${LOCALSTATEDIR}/empty` |
@@ -585,6 +583,16 @@ then | |||
585 | chown "${_user}".544 ${LOCALSTATEDIR}/log/sshd.log | 583 | chown "${_user}".544 ${LOCALSTATEDIR}/log/sshd.log |
586 | fi | 584 | fi |
587 | fi | 585 | fi |
586 | if ! ( mount | egrep -q 'on /(|usr/(bin|lib)) type system' ) | ||
587 | then | ||
588 | echo | ||
589 | echo "Warning: It appears that you have user mode mounts (\"Just me\"" | ||
590 | echo "chosen during install.) Any daemons installed as services will" | ||
591 | echo "fail to function unless system mounts are used. To change this," | ||
592 | echo "re-run setup.exe and choose \"All users\"." | ||
593 | echo | ||
594 | echo "For more information, see http://cygwin.com/faq/faq0.html#TOC33" | ||
595 | fi | ||
588 | fi | 596 | fi |
589 | fi | 597 | fi |
590 | 598 | ||