From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58790 invoked by alias); 22 Nov 2017 19:55:52 -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 58781 invoked by uid 89); 22 Nov 2017 19:55:51 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=Rao, rao, administrator, logon X-HELO: mail-qk0-f177.google.com Received: from mail-qk0-f177.google.com (HELO mail-qk0-f177.google.com) (209.85.220.177) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 22 Nov 2017 19:55:50 +0000 Received: by mail-qk0-f177.google.com with SMTP id c123so7922732qkf.7 for ; Wed, 22 Nov 2017 11:55:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eG4Ry03urmzUvOKMwMZYopeq+z5jQs5vC1AyZK5jVdA=; b=OPJ2/D+DT86EKzEF6VhovMtZsfLjr3LuQ0ortvy/KzsBHnLsnIQjQfiTNgfhuRFw2p TQbGV63O5T30TBWi2nD26av6mQjHEkPSnQqi/R7c2Z0q4kA7tAp/a3u1/qt0TLDdyiCu S6dpyMFNY3vZyZZNnHphRcVt4INC6bRiJtTr7nkF3/HfQoiNcPnuOUibkQbzVBsuhOmE 5xCaSkvGiqMn74nRNfsTO8XYG20L2tnxM/7Dvm44W5QJRfiQG3nfP0nlyntvHYXYDb75 E+e6RS+zuqxf4S63AnCf3QqYgOv++3JGLPxa9Mz2N8wQ2pXrMIgiLUQ1BMlmAu5Wf4+O sD0A== X-Gm-Message-State: AJaThX53S9OF7XrI0yBBYPSGqksR7XqKWJ8p1fMHG9YxNubyblUuHxCH fwVBU2Jh9AFmW/n7gfvOTNOflbc4zZ5BMAHta37FWA== X-Google-Smtp-Source: AGs4zMZpbz4tUrywIU3SR5Qy1wptld0rFun4GnUuqAwBK52st7K85McBQUOraVqDQAJUYTzPvvrKj+mDLr7H+htDqpI= X-Received: by 10.55.51.73 with SMTP id z70mr32606195qkz.338.1511380548227; Wed, 22 Nov 2017 11:55:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.221.19 with HTTP; Wed, 22 Nov 2017 11:55:47 -0800 (PST) From: Challa Rao Ande Date: Wed, 22 Nov 2017 19:55:00 -0000 Message-ID: Subject: Windows Credential Manager doesn't work with non cyg_server user when logged in over SSH To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2017-11/txt/msg00243.txt.bz2 Hello all, I'm working on an application which writes to Windows Credential Store (CredWrite api). I observed that when running this app over SSH session to a remote windows machine, it would give me an error: "A specified logon session doesn't exist. It may have been terminated." This error is mentioned in many forums in different contexts. The target machine has Cygwin installed (version 2.9.0(0.318/5/3)). The SSHD service is running with user cyg_server. cyg_server has administrator rights. After some debugging, I found out that this works for cyg_server user but not for other users. That means, if I log in over SSH with cyg_server user credentials, the app works fine. The other user that I'm using is a domain user. So to see if this is only issue with domain users, I created a local user and tried out my app. But still the issue persists. One more observation I have done is, when I invoke cmdkey command on ssh session, for cyg_server it would display the keys of this user from Credential Manager. But for other users, it would display an empty list although the corresponding users have keys in their Credential Manager. I also tried "login" in remote session again to no avail. Is this the way it is supposed to work, obviously not I guess. What am I missing? *PS*: I'm sending this email after reducing the problem to the current state. I've tried everything from Google search, SO, Event Viewer in Windows to figure this out. Apologies for any trouble. Thank you Challa Rao Ande -- 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