delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/02/16:23:42

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <42768CA6.6485FF51@dessent.net>
Date: Mon, 02 May 2005 13:25:10 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: CYGWIN sshd service could not be started
References: <000601c54f44$479cdc80$6c01a8c0 AT dell5100> <427678F2 DOT EA496694 AT dessent DOT net>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

--------------73F6F093A85E51255F1B51A3
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Brian Dessent wrote:

> (It would probably be a good addition for ssh-host-config to check for
> user mounts and bail or offer to remount them... this seems to come up a
> lot.)

Here is a patch against ssh-host-config that checks for this.

Brian
--------------73F6F093A85E51255F1B51A3
Content-Type: text/plain; charset=us-ascii;
 name="ssh-host-config-mountcheck.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ssh-host-config-mountcheck.patch"

--- ssh-host-config.orig	2005-05-02 13:09:13.984375000 -0700
+++ ssh-host-config	2005-05-02 13:23:50.640625000 -0700
@@ -583,6 +583,16 @@
 	chown "${_user}".544 ${LOCALSTATEDIR}/log/sshd.log
       fi
     fi
+    if mount | egrep -q 'on /(|usr/(bin|lib)) type user'
+    then
+      echo
+      echo "Warning: It appears that you have user mode mounts (\"Just me\""
+      echo "chosen during install.)  Any daemons installed as services will"
+      echo "fail to function unless system mounts are used.  To change this,"
+      echo "re-run setup.exe and choose \"All users\"."
+      echo
+      echo "For more information, see http://cygwin.com/faq/faq0.html#TOC33"
+    fi
   fi
 fi
 


--------------73F6F093A85E51255F1B51A3
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
--------------73F6F093A85E51255F1B51A3--


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019