Re: Cygwin SSHD logon Error - Unable to load C:\Windows\System33\userenv.dll

2015-03-10 Thread Georg Nikodym
On 2015 03 10 09:04 , Max Rockliff wrote:
> Yes, my cygwin is really located in C:\cygwin.  That was the default install
> folder and I thought it would ok.

Yes, c:\cygwin is the default location but your error message said
c:\cgwin (missing the 'y').  I pointed that out as a hint for you to
hunt for that typo elsewhere.

Sad to say, I don't have any special insight here.

I'm updating cygwin on one of my machines (long past due) and will be on
the lookout for this kind of problem.

-g




signature.asc
Description: OpenPGP digital signature


Re: Cygwin SSHD logon Error - Unable to load C:\Windows\System33\userenv.dll

2015-03-10 Thread Georg Nikodym
On 2015 03 10 08:52 , Max wrote:

> After restarting the PC I can logon using the basic user account quite
> successfully - I get the press ENTER to exit prompt, it pauses and logs out
> when I press ENTER.  However, in any subsequent logon, I get the following
> error:
> 
> 1 [main] sshd 4476 C:\cgwin\usr\sbin\sshd.exe *** fatal error - unable to
> load C:\Windows\system32\userenv.dll, Win32 error 1114 Connection to host
> closed.

Is that a typo or is your sshd really located in cgwin?

-g





signature.asc
Description: OpenPGP digital signature


Re: possible problem with "find . -name blah -o -name blah2"

2014-08-20 Thread Georg Nikodym

On Aug 20, 2014, at 16:58 , ml...@bogusville.us wrote:

> using CYGWIN_NT-6.1, bash 4.1.11(2) and find 4.5.12, the following returns
> immediately
> 
>   find . -name \*.cs -o -name \*.h -o -name \*.cpp -exec ls {} \;

Not a Cygwin problem.  Try:

find . \( -name \*.cs -o -name \*.h -o -name \*.cpp \) -exec ls {} \;

-g



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: localtime

2011-06-15 Thread Georg Nikodym

On 2011-06-15, at 2:04 PM, Tod wrote:

> Ok, right - duh.  Let me back up a couple of steps.
> 
> I'm passing a 128 byte char array.  I allocated it to provide enough room for 
> the date/time stamp this function is returning.  strlen(tout) will resolve to 
> the length of the tout string.
> 
> You said above that I shouldn't be using strlen(tout) and instead I should be 
> passing 128.  Would I be better off using sizeof(tout) instead?

Answered by Steve Thompson.

> Also, the code has always worked.  I just recompiled it recently.  Now the 
> date works but the time isn't appearing.  What could be causing that?

It worked by accident, not by design.  strlen simply counts bytes until it sees 
a zero.  In previous runs you were lucky that the memory pointed to by tout 
didn't have a zero in the first N bytes where N was enough to hold the result 
from strftime().

None of this is a cygwin issue.  Just very basic C programming.

-g


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



Re: Cygwin SSH Multiple Users

2009-06-03 Thread Georg Nikodym


On 3-Jun-09, at 11:52 AM, Corinna Vinschen wrote:


On Jun  3 11:11, Georg Nikodym wrote:
Also, "Win32 error 1062" doesn't tell anybody anything.  Paste more  
of

the session to provide some context.


bash$ net helpmsg 1062

The service has not been started.


Awesome!  Old dog, new tricks.

-g


--
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: Cygwin SSH Multiple Users

2009-06-03 Thread Georg Nikodym


On 3-Jun-09, at 10:10 AM, Holikar, Sachin (ext) wrote:



Hello,

Thanks for the reply. We did play around a lot with ssh-host-config  
but it used to give errors such that,

Win32 error 1062 .

Kindly suggest.


To be honest, I don't know.

I run ssh-host-config, say yes to privilege separation, give it the  
cyg_server password when asked (I previously ran cygserver-config).


Then I:

cygrunsrv -S sshd

 If I have a problem (like I forgot the cyg_server password), I'll  
cygrunsrv -R sshd and start again.


Also, "Win32 error 1062" doesn't tell anybody anything.  Paste more of  
the session to provide some context.


-g


--
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: Cygwin SSH Multiple Users

2009-06-03 Thread Georg Nikodym


On 3-Jun-09, at 4:13 AM, Holikar, Sachin (ext) wrote:



Hello,

We have configured Cygwin on Windows XP. SOmehow we managed to  
configure the SSH onto cygwin for a user called "mac". We could  
login to windows XP with the local user name mac and then start the
cygwin. And then /usr/sbin/sshd. Its the only way currently how we  
get to start the sshd daemon. And we could connect from remote  
system to this XP system using  "ssh -l mac winxp".
But now the problem is we can not make other users login to this  
winxp host. Here are few of the details help you understand the  
environment,


Consider running the ssh-host-config script.

-g


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



Update: rsh/rlogin on Cygwin 1.7/inetutils-1.5-6

2009-05-11 Thread Georg Nikodym
So turns out that I'm not a complete luser.  The steps I followed (and  
enumerated in a previous email) actually did work...  sort of.


There seems to be some issue(s) with localhost / whatever is providing  
the loopback network.


rsh hostname / rsh hostname command

both seem to work just fine (assuming the correct entry in .rhosts)

rsh localhost

on my Vista x64 vmware vm works but I cannot craft an rhosts entry to  
allow me to rlogin without a passwd.
on an XP x64 machine (standalone) I just get "rlogind: Permission  
denied"


rsh localhost cmd

I get "Host address mismatch for $FDQN" regardless of the platform.

So I think this changes the question from "what are the steps  
necessary to set up inetutils correctly" to "how do I configure things  
such that loopback/127.0.0.1 works as it does on on a *nix machine?"


On the Vista machine, the Windows ping insists on using the IPv6  
localhost address ::1  Cygwin ping does not.  Wondering if IPv6 is  
part of my problem.


Any hints welcome.

-g


--
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: Bug to setup Cygwin on Windows Server 2008 64bits

2009-05-07 Thread Georg Nikodym


On 7-May-09, at 10:56 AM, Kyeto wrote:


I have disabled DEP and now Cygwin run.
But i have just the pompt with :
bash-3.2$ : _

None commands are available
When i do a "ls" => command not found.
It's the same for a lot (touch, chmod ...)

But, pwd, cd work


Normally, people start cygwin using cygwin.bat (or an icon on their  
desktop that does the same).  This sets up some useful stuff.


From the picture in your previous post, you just started a shell  
(bash.exe) inside a command window.  In other words, there no  
guarantee that any useful environment was set up.


The commands that see working are builtin shell commands.  Things like  
ls are not (they are separate executables) and will need a proper path  
to find.


-g


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



cygwin-1.7beta -- iu-config -- what is the right way?

2009-05-05 Thread Georg Nikodym

My goal is to able to:

rsh localhost

or

rsh localhost ls

As you all know, this can be made to work just fine on 32-bit Windows  
variants.


Yes, I know all about ssh.  Not an option for various reasons out of  
my control.


With the cygwin-1.7 beta, I read that progress has been made in making  
this possible on 64-bit variants.  I have been beating my head against  
the wall long enough that I don't feel foolish asking for help.  The  
platforms I'm interested in are Windows XP x64, Vista x64, and Windows  
Server 2008 x64.


Here are the steps that I've used:

0.1. Fresh Windows install in a VM with all updates.
0.2. VM Snapshot
0.3. Disable the firewall

1. Install cygwin-1.7 (there is no 1.5)
2. Open cygwin window (as administrator)
3. iu-config

answer the questions, allow the creation of the cyg_server privileged  
user.


4. Edit the inetd.conf file to uncomment the login and shell lines.

5. cygrunsrv -S inetd

6.  Give it a try:

geo...@gn-vista64-vm ~
$ rsh localhost
rlogind: Permission denied.

geo...@gn-vista64-vm ~
$ rsh localhost ls
Host address mismatch for gn-vista64-vm.bitmover.com


So these steps fail on all three of my target platforms.  In the same  
way, so clearly the steps are consistently wrong.


I did have something working earlier on an xp x64 machine briefly but  
after a reboot it reverted to the above behaviour :-(


I have read many emails, web pages about the difficulties mapping UNIX  
setuid to the Windows (in)security model which have led me to try  
random things but doing these things in ignorance doesn't seem to be  
leading anywhere.


So I have to humbly ask, which FM did I forget to read?  Or is there  
some way to debug my way to an answer?


-g


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