This is the mail archive of the 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]


Hi all.

I'm a great user/fan of this fantastic CygWin allowing the freedom of *nix 
on Win (in a world without fences, who needs Gates?), but I recently tried 
to use sshd and got some problems.

Since I haven't been able to solve them by reading the tons of messages 
and howto I found on the 'Net, I'm trying with this e-mail.

On my Win 2000 Pro SP3 box, I am a user with Administrators rights but 
authenticated on a domain.
Typing "id" on prompt shows:
uid=400(marco) gid=401(mkgroup) 

I ran ssh-host config apparently correctly:
$ ssh-host-config -y
chmod: changing permissions of `/var/empty': Permission denied
Generating /etc/ssh_config file
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read 

Generating /etc/sshd_config file

Do you want to install sshd as service?

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 "binmode ntsec tty".  CYGWIN="binmode ntsec tty"

The service has been installed under LocalSystem account.

Host configuration finished. Have fun!

When I start it using "cygrunsrv -S sshd" I see 
$ cygrunsrv.exe -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 
The service has not been started.

...and in the event viewer an error like:
Event Type:     Error
Event Source:   sshd
Event Category: None
Event ID:       0
Date:           05/02/2003
Time:           10.15.25
Computer:       HKI-MAR-2000
The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The 
local computer may not have the necessary registry information or message 
DLL files to display messages from a remote computer. The following 
information is part of the event: sshd : Win32 Process Id = 0x4EC : Cygwin 
Process Id = 0x4EC : starting service `sshd' failed: execv: 255, error 

If I type "less /etc/passwd|grep marco" I see:

About permissions on files ( I read about them in some mailing list msgs), 
the most important look like:
marco@hki-mar-2000 /var
$ ls -la /var/empty
total 0
drwxr-xr-x+   2 SYSTEM   SYSTEM          0 Feb  4 17:02 .
drwxrwxrwx+   7 SYSTEM   SYSTEM          0 Feb  4 17:02 ..

marco@hki-mar-2000 /var
$ ls -la /etc/ssh*
-rw-rw-rw-    1 SYSTEM   mkgroup      1049 Feb  5 10:14 /etc/ssh_config
-rw-rw-rw-    1 SYSTEM   mkgroup      1049 Feb  4 18:38 
-rw-------    1 SYSTEM   SYSTEM        668 Feb  4 19:45 
-rw-r--r--    1 SYSTEM   SYSTEM        608 Feb  4 19:45 
-rw-------    1 SYSTEM   SYSTEM        533 Feb  4 19:45 /etc/ssh_host_key
-rw-r--r--    1 SYSTEM   SYSTEM        337 Feb  4 19:45 
-rw-------    1 SYSTEM   SYSTEM        883 Feb  4 19:45 
-rw-r--r--    1 SYSTEM   SYSTEM        228 Feb  4 19:45 
-rw-rw-rw-    1 SYSTEM   mkgroup      2142 Feb  5 10:14 /etc/sshd_config
-rw-rw-rw-    1 SYSTEM   mkgroup      2142 Feb  4 18:38 

CYGWIN is set as a system variable 
marco@hki-mar-2000 /
$ echo $CYGWIN
binmode ntsec tty

What's wrong?

Thanks in advance.

        Marco ;-)


"We can be what we give ourselves the power to be"
         A Cherokee Feast of Days

Marco Rottigni
Senior Technical Consultant
Stonesoft Italia
Tel:     +39 039 6083 385 
Fax:    +39 039 6082 721 
GSM:  +39 348 8591791

Unsubscribe info:
Bug reporting:

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