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]

Re: group"S-1-2-0"(users who login locally)in ssh;windows 2003


Tom Rodman wrote:
Hosts effected:

several boxes running windows 2003 server w/cygwin (1.5.20s(0.155/4/2) 20060403 13:33:45)

Problem (or feature?):

when you ssh to these boxes, and run:

$WINDIR/system32/whoami /all |grep -q S-1-2-0 || echo OOPs # "OOPS" echos :-<

"S-1-2-0" == "Users who log on to terminals locally (physically) connected to the system."

Under windows 2000 (also a different cygwin version), ssh sessions show group membership
in "S-1-2-0":

   $ '/drv/c/Program Files/Resource Kit/whoami' /all|grep S-1-2-0
   [Group  9] = "LOCAL"  S-1-2-0

The reason I care is that is that several tools we call from cygwin, will
not run unless the session is in S-1-2-0.

What makes you say this? What tools?


I'm not sure if this is a cygwin version issue, or due to windows 2003.
Any thoughts/can others test this in an ssh session?:

$WINDIR/system32/whoami /all |grep -q S-1-2-0 || echo OOPs

FWIW, on my 2k3 box, I show up as a member in S-1-2-0 both logged in "locally" (via Remote Desktop Sharing, with which I have never had anything "not work") and via Cygwin sshd. Under ssh, all privileges are "enabled", under "local", only SeChangeNotifyPrivilege, SeImpersonatePrivilege and SeCreateGlobalPrivilege are enabled.


Here are all system group memberships

"local" groups:
---------------
Everyone                          Well-known group S-1-1-0
LOCAL                             Well-known group S-1-2-0
NT AUTH*\REMOTE INTERACTIVE LOGON Well-known group S-1-5-14
NT AUTH*\INTERACTIVE              Well-known group S-1-5-4
NT AUTH*\Authenticated Users      Well-known group S-1-5-11
NT AUTH*\This Organization        Well-known group S-1-5-15
NT AUTH*\NTLM Authentication      Well-known group S-1-5-64-10
BUILTIN\Administrators            Alias            S-1-5-32-544
BUILTIN\Users                     Alias            S-1-5-32-545
(*Abbreviated for line-wrapping)

ssh groups:
-----------
Everyone                         Well-known group S-1-1-0
LOCAL                            Well-known group S-1-2-0
NT AUTHORITY\Authenticated Users Well-known group S-1-5-11
NT AUTHORITY\SERVICE             Well-known group S-1-5-6
BUILTIN\Administrators           Alias            S-1-5-32-544
BUILTIN\Users                    Alias            S-1-5-32-545

This probably doesn't have much to do with your problem, but might relate to some of the other ssh problems people (including myself) have been having.

--
Matthew
vIMprove your life! Now on version 7!


-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/


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