Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Fri, 11 Mar 2005 12:50:03 -0500 (EST)
From: Igor Pechtchanski <pechtcha@cs.nyu.edu>
Reply-To: cygwin@cygwin.com
To: cygwin@cygwin.com
cc: Jeff Silverman <jsilverman@real.com>
Subject: Re: Problems starting SSHD
In-Reply-To: <Pine.GSO.4.61.0503111235510.23792@slinky.cs.nyu.edu>
Message-ID: <Pine.GSO.4.61.0503111249050.23792@slinky.cs.nyu.edu>
References: <4231D448.7090208@real.com> <Pine.GSO.4.61.0503111235510.23792@slinky.cs.nyu.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII

On Fri, 11 Mar 2005, Igor Pechtchanski wrote:

> On Fri, 11 Mar 2005, Jeff Silverman wrote:
>
> > sshd : PID 1696 : starting service `sshd' failed: execv: 1, Operation
> > not permitted.
>
> Try running
>
> cygcheck /usr/sbin/sshd.exe | sed -ne 's,\\,/,g' -e '/cygwin/p' | \
>   xargs cygpath -u | xargs echo chmod a+x

Grr, embarrassed by cut-and-paste...  Again...

Here's the "real" incantation:

cygcheck /usr/sbin/sshd.exe | sed -ne 's,\\,/,g' -e '/cygwin/p' | \
  xargs cygpath -u | xargs chmod a+x

Sorry for letting that test bit through...
	Igor

> (as is, on 2 lines -- just cut-and-paste to your shell).
>
> Also, "chmod a+x /bin".
>
> > and
> >
> > sshd : PID 2548 : starting service `' failed: redirect_fd: open (1,
> > /var/log/sshd.log): 13, Permission denied.
>
> Try "chmod a+x /var /var/log" and
> "chown SYSTEM.SYSTEM /var/log/sshd.log && chmod 644 /var/log/sshd.log"
>
> > I have attached the output of  cygcheck -svr as the file
> > cygcheck)output.txt.
> > What else should I look at, please?
>
> It's always a good idea to check permissions on anything that might be
> used in a program running as service, just to make sure that the SYSTEM
> user (which is used to run services, a.k.a. LocalSystem) has appropriate
> access.
>
> An aside: one possible useful addition to cygcheck is printing the
> permission bits when listing the DLLs in verbose mode...  Any volunteers
> to add this functionality?
>
> HTH,
> 	Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"The Sun will pass between the Earth and the Moon tonight for a total
Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT

--
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/

