Re: "Unknown" user after logging into sshd under Vista

2007-10-05 Thread Larry Hall (Cygwin)

Daniel Noll wrote:

On Friday 05 October 2007 13:07:41 Larry Hall (Cygwin) wrote:

OK, we now know the symptoms and the problem.  But we don't have any basic

configuration information to do some simple triage with.  In short:

Problem reports:   http://cygwin.com/problems.html

Please read and follow the above guidelines, paying particular attention to
the part about *attaching* cygcheck output.

In the absence of the above, my WAG is that the user you are logging in as
(domain user perhaps?) is not in your '/etc/passwd' file.  See 'man passwd'
and the Cygwin Users Guide  for more
details.  Ditto for '/etc/group'.


Okay.

Firstly we have this little error that comes straight after running it:


[501] [EMAIL PROTECTED]:~> cygcheck -s -v -r > cygcheck.out
'id' program not found
'id' program not found



This suggests your installation isn't complete.  It's hard to say how
incomplete without the full cygcheck output but why don't you just try
re-running 'setup.exe' and walking through all the pages and see if you
can find 'id' after that.  I'm wondering if some postinstall scripts
didn't run.  If that doesn't work, look in '/etc/postinstall' for any
scripts there that don't have a '.done' suffix.  Make a note of these
and try running them yourself.  See if that helps.  If not, report what
you did and saw.



It does then run, but it recurses forever on one of Windows' (many :-/)
recursive registry nodes.  I've attached the portion of the file before
this takes place, in the hope that the stuff which comes after won't be
needed.



Yikes!   Never seen or heard of this before.  This doesn't strike me as a
'Good Thing'(tm).  I don't know if it's coming into play here or not but
it doesn't give me a warm, fuzzy feeling.



/etc/passwd looks like this:





/etc/group has:


Yeah these look OK.  It looks like you're working on your on machine outside
of any Windows domain.  That's useful info (though not clearly pointing to a
solution).

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



Re: "Unknown" user after logging into sshd under Vista

2007-10-04 Thread Daniel Noll
On Friday 05 October 2007 13:07:41 Larry Hall (Cygwin) wrote:
> OK, we now know the symptoms and the problem.  But we don't have any basic
>
> configuration information to do some simple triage with.  In short:
> > Problem reports:   http://cygwin.com/problems.html
>
> Please read and follow the above guidelines, paying particular attention to
> the part about *attaching* cygcheck output.
>
> In the absence of the above, my WAG is that the user you are logging in as
> (domain user perhaps?) is not in your '/etc/passwd' file.  See 'man passwd'
> and the Cygwin Users Guide  for more
> details.  Ditto for '/etc/group'.

Okay.

Firstly we have this little error that comes straight after running it:

> [501] [EMAIL PROTECTED]:~> cygcheck -s -v -r > cygcheck.out
> 'id' program not found
> 'id' program not found

It does then run, but it recurses forever on one of Windows' (many :-/)
recursive registry nodes.  I've attached the portion of the file before
this takes place, in the hope that the stuff which comes after won't be
needed.

/etc/passwd looks like this:

> SYSTEM:*:18:544:,S-1-5-18::
> Administrators:*:544:544:,S-1-5-32-544::
> Administrator:unused_by_nt/2000/xp:500:513:U-Monolith\Administrator,S-1-5-21-387
>  7142786-2852047967-4020260781-500:/home/Administrator:/bin/bash
> daniel:unused_by_nt/2000/xp:1000:513:U-Monolith\Daniel,S-1-5-21-3877142786-28520
>  47967-4020260781-1000:/home/daniel:/bin/bash
> Guest:unused_by_nt/2000/xp:501:513:U-Monolith\Guest,S-1-5-21-3877142786-28520479
>  67-4020260781-501:/home/Guest:/bin/bash
> sshd:unused_by_nt/2000/xp:1001:513:sshd 
> privsep,U-Monolith\sshd,S-1-5-21-3877142786-2852047967-4020260781-1001:/var/empty:/bin/false
> sshd_server:unused_by_nt/2000/xp:1003:513:sshd server 
> account,U-Monolith\sshd_server,S-1-5-21-2403187937-3420309498-45037-1003:/var/empty:/bin/false

The 'daniel' line exists and does appear to be set to the right user,
except that my username should start with a lowercase d in there but I
tried changing that just now and it didn't make a difference.  Gotta
wonder where it got that capital letter from though, my username all
throughout Windows doesn't have it.

/etc/group has:

> root:S-1-5-32-544:0:
> SYSTEM:S-1-5-18:18:
> None:S-1-5-21-3877142786-2852047967-4020260781-513:513:
> Administrators:S-1-5-32-544:544:
> Backup Operators:S-1-5-32-551:551:
> Cryptographic Operators:S-1-5-32-569:569:
> Distributed COM Users:S-1-5-32-562:562:
> Event Log Readers:S-1-5-32-573:573:
> Guests:S-1-5-32-546:546:
> IIS_IUSRS:S-1-5-32-568:568:
> Network Configuration Operators:S-1-5-32-556:556:
> Performance Log Users:S-1-5-32-559:559:
> Performance Monitor Users:S-1-5-32-558:558:
> Power Users:S-1-5-32-547:547:
> Remote Desktop Users:S-1-5-32-555:555:
> Replicator:S-1-5-32-552:552:
> Users:S-1-5-32-545:545:

Perhaps suspiciously, I'm missing from Users.  But groups doesn't care...

> [516] [EMAIL PROTECTED]:~> groups
> None root Administrators Users

Daniel

Cygwin Configuration Diagnostics
Current System Time: Fri Oct 05 13:51:52 2007

Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6000 

Running under WOW64 on AMD64

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
C:\cygwin\usr\X11R6\bin
c:\Windows\system32
c:\Windows
c:\Windows\System32\Wbem
c:\Program Files (x86)\Ant\bin
c:\Program Files (x86)\Java\jdk1.6.0_02\bin

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'daniel'
PWD = '/home/daniel'
HOME = '/home/daniel'
MAKE_MODE = 'unix'

HOMEPATH = '\Users\daniel'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Users\daniel\AppData\Roaming'
PROGRAMW6432 = 'C:\Program Files'
HOSTNAME = 'Monolith'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'AMD64 Family 15 Model 75 Stepping 2, AuthenticAMD'
WINDIR = 'C:\Windows'
VS80COMNTOOLS = 'C:\Program Files (x86)\Microsoft Visual Studio 
8\Common7\Tools\'
COMMONPROGRAMW6432 = 'C:\Program Files\Common Files'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/usr/bin'
PROGRAMDATA = 'C:\ProgramData'
USERDOMAIN = 'Monolith'
COMMONPROGRAMFILES(X86) = 'C:\Program Files (x86)\Common Files'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\ProgramData'
ANT_HOME = 'C:\Program Files (x86)\Ant'
!:: = '::\'
TEMP = '/cygdrive/c/Users/daniel/AppData/Local/Temp'
COMMONPROGRAMFILES = 'C:\Program Files (x86)\Common Files'
USERNAME = 'daniel'
PROCESSOR_LEVEL = '15'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
PROCESSOR_ARCHITEW6432 = 'AMD64'
JAVA_HOME = 'c:\Program Files (x86)\Java\jdk1.6.0_02'
EDITOR = 'vim'
USERPROFILE = 'C:\Users\daniel'
PS1 = '\033[1m[\!] [EMAIL PROTECTED]:\w> \033[0m'
LOGONSERVER = '\\MONOLITH'
PROCESSOR_ARCHITECTURE = 'x86'
LOCALAPPDATA = 'C:\Users\daniel\AppData\Local'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\Windows\system32\cmd.exe'
TMP = '/tmp'
SYSTEMROOT = 'C:\Windows'
PRINT

Re: "Unknown" user after logging into sshd under Vista

2007-10-04 Thread Larry Hall (Cygwin)

Daniel Noll wrote:

Hi all.

The archives do have a number of Vista-related SSH problems which have solved 
the issue of getting it installed, but I haven't been able to solve the issue 
I found next.


Here's the options I used to configure the service...


[508] [EMAIL PROTECTED]:~> ssh-host-config
Overwrite existing /etc/ssh_config file? (yes/no) yes
Generating /etc/ssh_config file
Overwrite existing /etc/sshd_config file? (yes/no) yes



Should privilege separation be used? (yes/no) yes
Generating /etc/sshd_config file



Do you want to install sshd as service?
(Say "no" if it's already installed as service) (yes/no) yes



Should this script create a new local account 'sshd_server' which has
the required privileges? (yes/no) yes



Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "ntsec".  CYGWIN=



However on logging in...

[503] [EMAIL PROTECTED]:~> ssh localhost
Last login: Fri Oct  5 09:20:07 2007 from 127.0.0.1
Fanfare!!!
You are successfully logged in to this server!!!
Could not chdir to home directory /home/daniel: Permission denied
-bash: cd: /home/daniel: Permission denied


Permissions on my home directory are correct as I can get into it via 
Explorer.  The problem is elsewhere -- if I look in the process list, the 
bash.exe process is running as user "(unknown)", not as my user account.


I'm not sure what to do from here.  What part of Cygwin is responsible for 
changing the user ID when a user logs in via SSH, and what is usually 
responsible for it misbehaving?



OK, we now know the symptoms and the problem.  But we don't have any basic
configuration information to do some simple triage with.  In short:


Problem reports:   http://cygwin.com/problems.html


Please read and follow the above guidelines, paying particular attention to
the part about *attaching* cygcheck output.

In the absence of the above, my WAG is that the user you are logging in as
(domain user perhaps?) is not in your '/etc/passwd' file.  See 'man passwd'
and the Cygwin Users Guide  for more
details.  Ditto for '/etc/group'.



--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

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



"Unknown" user after logging into sshd under Vista

2007-10-04 Thread Daniel Noll
Hi all.

The archives do have a number of Vista-related SSH problems which have solved 
the issue of getting it installed, but I haven't been able to solve the issue 
I found next.

Here's the options I used to configure the service...

> [508] [EMAIL PROTECTED]:~> ssh-host-config
> Overwrite existing /etc/ssh_config file? (yes/no) yes
> Generating /etc/ssh_config file
> Overwrite existing /etc/sshd_config file? (yes/no) yes

> Should privilege separation be used? (yes/no) yes
> Generating /etc/sshd_config file

> Do you want to install sshd as service?
> (Say "no" if it's already installed as service) (yes/no) yes

> Should this script create a new local account 'sshd_server' which has
> the required privileges? (yes/no) yes

> Which value should the environment variable CYGWIN have when
> sshd starts? It's recommended to set at least "ntsec" to be
> able to change user context without password.
> Default is "ntsec".  CYGWIN=


However on logging in...
> [503] [EMAIL PROTECTED]:~> ssh localhost
> Last login: Fri Oct  5 09:20:07 2007 from 127.0.0.1
> Fanfare!!!
> You are successfully logged in to this server!!!
> Could not chdir to home directory /home/daniel: Permission denied
> -bash: cd: /home/daniel: Permission denied

Permissions on my home directory are correct as I can get into it via 
Explorer.  The problem is elsewhere -- if I look in the process list, the 
bash.exe process is running as user "(unknown)", not as my user account.

I'm not sure what to do from here.  What part of Cygwin is responsible for 
changing the user ID when a user logs in via SSH, and what is usually 
responsible for it misbehaving?

Daniel

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