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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=jgm3wdBjbhULO5u7b/HvoiEFB0fjpIQQ2trbjxMPCTr
	AYkGxCcVUJ3J0J5xVGLAIbCBtppyanXENpMWNFpQhKtXqW5d8KJyhjLvLzrZE1oJ
	4sCRrdmvqK8OmbrB0MR5tdj3jsLBe1EXjh+QK1ER5ZQdBMqL4DyQ7qUkDWryYrLE
	=
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:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=8+fhCaypY5hA8toBCg2OQmH+aGM=; b=mT3zJZYrK9UQJ5Mgy
	AkVF/mwidPm3/ndG0LEV54a4RtBJCI37Q3ug4zhKwhJ0SYTNwK3PXITlr7Uh4xfz
	9uVmXdV1tQnmQApkp+pQuN7d7Xa3h7dQ9wn+pCJyjA5hhb1liXpOHyZKUWvOOqar
	2wRuj9bdGuBAdeRcWTPTx6VtAI=
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=-0.8 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: ossmail01.onespin-solutions.com
Message-ID: <53036C34.8050300@onespin-solutions.com>
Date: Tue, 18 Feb 2014 15:20:36 +0100
From: =?UTF-8?B?RG9taW5payBTdHJhw59lcg==?= <dominik.strasser@onespin-solutions.com>
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: NFS/SSHD interaction
References: <53034B02.6030501@onespin-solutions.com> <20140218122019.GE2246@calimero.vinschen.de> <53035392.5060100@onespin-solutions.com> <20140218124332.GF2246@calimero.vinschen.de>
In-Reply-To: <20140218124332.GF2246@calimero.vinschen.de>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.9 () ALL_TRUSTED,BAYES_00
X-IsSubscribed: yes

Hi Corinna,
Am 18.02.2014 13:43, schrieb Corinna Vinschen:
> On Feb 18 13:35, Dominik Straßer wrote:
>> Hi Corinna,
>> thanks for the pointer. I haven't yet fully understood the
>> credentials stuff. But can it have this result:
>> In the cygwin terminal:
>> ls -l /cygdrive
>> total 43
>> d---------+  1 TrustedInstaller TrustedInstaller     0 Feb 18 10:27 c
>> drwxr-x---  15 night            None              1024 Jan 23 22:53 k
>> drwxr-x---  52 night            None             24576 Feb 18  2014 n
>> drwxr-x--x  62 night            None             14336 Feb 17 13:57 s
>>
>> In the ssh:
>> ls -l /cygdrive
>> total 4
>> d---------+ 1 TrustedInstaller TrustedInstaller 0 Feb 18 10:27 c
> Keep in mind that the login via ssh is in another session than a desktop
> session.  If you want a user to see the automatically mounted drives in
> a ssh session, the ssh session needs the user's credentials.  This only
> works if the user mounts the required drives manually after login via
So what I am doing now is (in .bashrc)
/cygdrive/c/Windows/system32/mount.exe '<nfs-path>' k:
mount k: /home/user1

which seems to work.
> ssh, or if the login via ssh already has the credentials.  This is
> only the case when using method 3:
> http://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd3
>
>

tried it, but didn't work:
$ passwd -R
This functionality stores a password in the registry for usage by services
which need to change the user context and require network access. Typical
applications are interactive remote logons using sshd, cron task, etc.
This password will always tried first when any privileged application is
about to switch the user context.

Note that storing even obfuscated passwords in the registry is not overly
secure.  Use this feature only if the machine is adequately locked down.
Don't use this feature if you don't need network access within a remote
session.

You can delete the stored password by specifying an empty password.

Enter your current password:
Re-enter your current password:
Storing password failed: Function not implemented

here my cygwin version:
$ uname -a
CYGWIN_NT-6.1 ossvmw7u1 1.7.28(0.271/5/3) 2014-02-09 21:06 x86_64 Cygwin

Thanks for the hints I now have a working solution. Not nice, but it 
seems to work.

Best regards

Dominik

-- 
Dominik Strasser       | Phone:  +49 89 99013-436
OneSpin Solutions GmbH | Fax:    +49 89 99013-100
Nymphenburgerstr. 20a
80335 Muenchen         | dominik.strasser@onespin-solutions.com
Geschaeftsfuehrung: Dr. Raik Brinkmann, Oliver Habeck
Vorsitzender des Beirats: Paul Hill
Sitz: Muenchen; Amtsgericht Muenchen HRB 139464
UstID#: DE 814413215


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

