X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type; q=dns; s=default; b=v/9asrkDIKxn0cwTaX1f3hcyTuzqi
	eFvKxn4CSxDjK8c4RCQYSttdkEvcrrzcohgz7WfaTTM7QAv0mw2Ch9Vi3Ar17SX9
	C+1nDNfL1H1hy7LaYEbecF3InoFzMT2Vp/hMBA6jkS8mqEvxY1qpMytuHx0isJOB
	oVeCe2VUey/fAY=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:mime-version:date:message-id:subject:from:to
	:content-type; s=default; bh=cjtrjQmYY3/HFXuQ6SyUgP12VAI=; b=Vi0
	FMMm6HoxGelA+ZXOBlVkqRQD9r4pxBeY2x6i8I1SV5sCLb6sbBPPRB749026EEgO
	MHMxwQK9ai3Wh2ScHhx/YHns0fksDK5KoDq+FMOt3jiFSUmdAFRzwYosIDRvNYal
	isBmpAMYtMYdczI4sOPcBicx8dyiB/2KT7SBPCFc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.5 required=5.0 tests=AWL,BAYES_05,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-ob0-f172.google.com
MIME-Version: 1.0
X-Received: by 10.60.118.38 with SMTP id kj6mr32793036oeb.68.1404998468164; Thu, 10 Jul 2014 06:21:08 -0700 (PDT)
Date: Thu, 10 Jul 2014 09:21:08 -0400
Message-ID: <CAJUG3bre2O3ShRHSXkQV8AeLarbXv+bh+QAHeuCjcY-vqT2Qzg@mail.gmail.com>
Subject: Issues applying permission changes via SSHD (Cygwin 2.850 64-bit, Windows Server 2008 R2 SP1 64-bit)
From: Josh Lynn <joshua.lynn@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=UTF-8

Hello -

I'm only having a few issues with my current Cygwin setup on Server
2008, and it's concerning chmod / chown permission changes being done
via SSHD to the windows box.

At first I was having issues restarting services remotely as well,
receiving "Access Denied" messages, then I found this article
regarding LSA authentication package and I configured this and it
resolved the user impersonation issues I was seeing. From my other box
(OEL), I used ssh to connect to the Windows box and ran a "whoami" and
it came back with a different user than whom I was connecting with,
after configuring LSA within Cygwin, it now matches and impersonates
the user I'm connecting with to the Windows box.

At this point, I'm able to do all of the following commands locally as
the same user, I just can't do them via SSH, which is similar to the
issue I had above with services, but definitely a bit more complicated
since I'm mingling UNIX permissions with Windows.  Here are the
commands I'm trying to run from my OEL box to the Windows box via SSH
that are failing:

# Restore permissions
echo Restoring permissions
chmod -R 777 $WEBAPPS_DIR
chown -R linuxsrv.Administrators $WEBAPPS_DIR
#chmod -R 777 $PORTALBIN_DIR
#chown -R Administrator $PORTALBIN_DIR
#chmod -R 777 $PORTALCONNECTPROCESSOR_DIR
#chown -R Administrator $PORTALCONNECTPROCESSOR_DIR
#chmod -R 777 $SPACEUSAGE_DIR
#chown -R Administrator $SPACEUSAGE_DIR

Where $WEBAPPS_DIR = /cygdrive/e/tomcat/webapps
$PORTALBIN_DIR = /cygdrive/e/PortalBin
$PORTALCONNECTPROCESSOR_DIR = /cygdrive/e/PortalConnectProcessor
$SPACEUSAGE_DIR = /cygdrive/e/SpaceUsage

I only mention all of the above to give full context.  The user I'm
using to ssh is the following:

1) Administrator on the local Windows machine (NTFS)
2) Domain account (Was imported into the /etc/passwd and have verified
proper attributes and group ownership in /etc/group)
3) Is able to do all of these things locally on the Windows box, just
not via SSH.

If anyone can offer some assistance on this, it would be greatly appreciated.

Thanks!
Josh

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

