This is the mail archive of the cygwin-developers@cygwin.com 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]

Re: Subauthentication


Hartmut Honisch wrote:

> I've mainly been testing with ssh and public key authentication. The sshd is
> installed as Windows service, running under the LocalSystem account. When I
> use an ssh client (and public key authentication) to connect to the sshd as
> "MyUser", the session should run in the security context "MyUser". Howerver,
> all calls to Windows' GetUserName() or similar functions always return the
> LocalSystem account. 

Correct, Windows has this very annoying feature where you can't find your own
name when you are impersonated. However Cygwin goes to great lengths to set 
USERNAME correctly.

> Therefore, I effectively have the permissons of
> LocalSystem when accessing secured objects on the target system. This is no
> good.

Don't worry, the access token only has your groups and privileges.
Besides the incorrect name, is there any indication that you have gained
any unusual powers? 

Pierre


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