public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Josh Lynn <joshua.lynn@gmail.com>
To: cygwin@cygwin.com
Subject: Issues applying permission changes via SSHD (Cygwin 2.850 64-bit, Windows Server 2008 R2 SP1 64-bit)
Date: Thu, 10 Jul 2014 13:21:00 -0000	[thread overview]
Message-ID: <CAJUG3bre2O3ShRHSXkQV8AeLarbXv+bh+QAHeuCjcY-vqT2Qzg@mail.gmail.com> (raw)

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

                 reply	other threads:[~2014-07-10 13:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJUG3bre2O3ShRHSXkQV8AeLarbXv+bh+QAHeuCjcY-vqT2Qzg@mail.gmail.com \
    --to=joshua.lynn@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).