This is the mail archive of the
mailing list for the Cygwin project.
- From: Vince Hoffman <Vince dot Hoffman at uk dot circle dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Wed, 5 Feb 2003 11:27:42 -0000
- Subject: RE: SSHD/
Can you check the contents of /var/log/sshd.log that sometimes holds the
I also tend to have /etc/ssh_config and /etc/sshd_config as -rw-rw-r-
(although i'm not sure that would stop the sshd starting, i forget.)
Maybe check your mounts are system mounts (type mount and if you get
h:\cygwin\bin on /usr/bin type system (binmode)
(the system bit being the important bit,) then you should be ok.
> -----Original Message-----
> From: Marco.Rottigni@stonesoft.com
> Sent: 05 February 2003 10:47
> To: firstname.lastname@example.org
> Subject: SSHD/
> 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
> User: NT AUTHORITY\SYSTEM
> 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
> -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
> -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
> -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
> Email: email@example.com
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html