From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2760 invoked by alias); 10 Jul 2014 13:21:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 2639 invoked by uid 89); 10 Jul 2014 13:21:12 -0000 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 Received: from mail-ob0-f172.google.com (HELO mail-ob0-f172.google.com) (209.85.214.172) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 10 Jul 2014 13:21:10 +0000 Received: by mail-ob0-f172.google.com with SMTP id wn1so973157obc.31 for ; Thu, 10 Jul 2014 06:21:08 -0700 (PDT) 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) Received: by 10.182.74.133 with HTTP; Thu, 10 Jul 2014 06:21:08 -0700 (PDT) Date: Thu, 10 Jul 2014 13:21:00 -0000 Message-ID: Subject: Issues applying permission changes via SSHD (Cygwin 2.850 64-bit, Windows Server 2008 R2 SP1 64-bit) From: Josh Lynn To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 X-SW-Source: 2014-07/txt/msg00123.txt.bz2 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