public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Unknown+user issues using cygwin under an Azure AD "domain" account on Windows 10.1511?
@ 2016-02-05 22:08 Russell Mora
  2016-02-05 22:31 ` Russell Mora
  0 siblings, 1 reply; 2+ messages in thread
From: Russell Mora @ 2016-02-05 22:08 UTC (permalink / raw)
  To: cygwin

Hi All,

Big fan - long time user, first time mailer! :-)

Quick check - I'm seeing Unknown+user issues even since I started
logging in via an Azure AD "domain" account - I put "domain" in quotes
because Azure AD is not full AD domain services, just the identity
services (likely cause of my failure....)

Anyway, this is what I see:

==============
C:\WINDOWS\system32>whoami
azuread\russellmora

C:\WINDOWS\system32>
==============

I used the 2.873 64-bit installer and did a basic install. When I
first fire up cygwin (from c:\cygwin64\cygwin.bat) I see this (note
the home dir and whoami are different, plus what to me seems like
unusual permissions for my home dir):

==============
Copying skeleton files.
These files are for the users to personalise their cygwin experience.

They will never be overwritten nor automatically updated.

'./.bashrc' -> '/home/RussellMora//.bashrc'
/usr/bin/install: cannot create regular file
'/home/RussellMora//.bashrc': Permission denied
'./.bash_profile' -> '/home/RussellMora//.bash_profile'
/usr/bin/install: cannot create regular file
'/home/RussellMora//.bash_profile': Permission denied
'./.inputrc' -> '/home/RussellMora//.inputrc'
/usr/bin/install: cannot create regular file
'/home/RussellMora//.inputrc': Permission denied
'./.profile' -> '/home/RussellMora//.profile'
/usr/bin/install: cannot create regular file
'/home/RussellMora//.profile': Permission denied

Unknown+User@Lenovo-PC ~
$ whoami
Unknown+User

Unknown+User@Lenovo-PC ~
$ pwd
/home/RussellMora

Unknown+User@Lenovo-PC ~
$ ls -la
total 0
d------r-x+ 1 Unknown+User Unknown+Group 0 Feb  5 16:49 .
drwxrwxrwt+ 1 Unknown+User Unknown+Group 0 Feb  5 16:49 ..

Unknown+User@Lenovo-PC ~
$ uname -a
CYGWIN_NT-10.0 Lenovo-PC 2.4.1(0.293/5/3) 2016-01-24 11:26 x86_64 Cygwin

==============

This all started because I was getting the "Failed to fork child
process: No such file or directory." issue when starting cygwin from
the start menu.  I did a clean install with clean registry but that
didn't help.

Any ideas?

Cheers,
Russell

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unknown+user issues using cygwin under an Azure AD "domain" account on Windows 10.1511?
  2016-02-05 22:08 Unknown+user issues using cygwin under an Azure AD "domain" account on Windows 10.1511? Russell Mora
@ 2016-02-05 22:31 ` Russell Mora
  0 siblings, 0 replies; 2+ messages in thread
From: Russell Mora @ 2016-02-05 22:31 UTC (permalink / raw)
  To: cygwin

Finally occurred to me to run whoami under strace - I saw this which
was of interest:

========
 2706   10005 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
Unknown domain AzureAD
--- Process 13636 loaded C:\Windows\System32\netapi32.dll at 00007FFAD6B50000
--- Process 13636 loaded C:\Windows\System32\samcli.dll at 00007FFACDD40000
--- Process 13636 loaded C:\Windows\System32\samlib.dll at 00007FFAD3D50000
 2790   12795 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Medium Mandatory Level:S-1-16-8192:401408:>
--- Process 13636 loaded C:\Windows\System32\netutils.dll at 00007FFAD5280000
 1086   13881 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Users:S-1-5-32-545:545:>
   49   13930 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <INTERACTIVE:S-1-5-4:4:>
   27   13957 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <CONSOLE LOGON:S-1-2-1:66049:>
   25   13982 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Authenticated Users:S-1-5-11:11:>
   23   14005 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <This Organization:S-1-5-15:15:>
   22   14027 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <LOCAL:S-1-2-0:66048:>
   25   14052 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Unknown+Group:S-1-12-1-2741946010-1181797680-2322883994-3292483823:4294967295:>
   24   14076 [main] whoami 13636 pwdgrp::fetch_account_from_windows:
line: <Cloud Account Authentication:S-1-5-64-36:262180:>
   26   14102 [main] whoami 13636 internal_getlogin: user not found in passwd DB
   22   14124 [main] whoami 13636 cygheap_user::ontherange: what 2, pw 0x0
   23   14147 [main] whoami 13636 cygheap_user::ontherange: HOME is
already in the environment /home/RussellMora
========

Went back to the Windows version of whoami and got this:

========
C:\WINDOWS\system32>whoami /fqdn
ERROR: Unable to get Fully Qualified Distinguished Name (FQDN) as the current
       logged-on user is not a domain user.

C:\WINDOWS\system32>
========

Yeah... I'm not too surprised it doesn't work....

Cheers,
Russell.

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-02-05 22:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-05 22:08 Unknown+user issues using cygwin under an Azure AD "domain" account on Windows 10.1511? Russell Mora
2016-02-05 22:31 ` Russell Mora

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).