This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with user identity reported by windows native whoami on ssh


I recently tried to use Cygwin's sshd and encountered a problem -
every command sent by ssh over a channel different than that created
after initial logon (password authentication) is executed with sshd
service identity (local cyg_server_ instead of the user I logged with.
A code says a thousands word, so let mi give you the easiest
reproduction I have with a simple python script utilizing fabric
package (which uses paramiko as an ssh connection layer):

import fabric.api

@fabric.api.hosts('127.0.01')
def main():
??? fabric.api.run('c:/Windows/System32/whoami.exe')
??? fabric.api.run('c:/Windows/System32/whoami.exe')

if __name__ == '__main__':
??? fabric.api.execute(main)

And the results are:

[127.0.0.1] Executing task 'main'
[127.0.0.1] run: c:/Windows/System32/whoami.exe
[127.0.0.1] Login password:
[127.0.0.1] out: <my_domain\my_account_name>
[127.0.0.1] out:
[127.0.0.1] run: c:/Windows/System32/whoami.exe
[127.0.0.1] out: <localhost_machine_name>\cyg_server
[127.0.0.1] out:

fabric/paramiko ssh package source code indicates that each command is
invoked over a different ssh channel. When using only one channel (e.g
connecting with putty or cygwin's own ssh client) the problem does not
manifests.

Cygcheck -s -v -r is attached.

Thanks for any help,
Jan Duzinkiewicz

Attachment: cygcheck.txt
Description: Text document

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]