[ANNOUNCEMENT] [1.7] Updated: email-3.1.2-2

2009-03-31 Thread Ross Smith II
I've made a new version of 'email' available for installation.
This is the most recent version of email available from 
http://www.cleancode.org/projects/email.

Changes since 2.5.1:

- Minimal TLS support
- Added UTF-8 support for headers and message
- Added a timeout option
- Fixed bug that was causing 100% CPU usage on some mailings
- Fixed the "No SMTP Server specified" issue that existed on 64bit and Solaris 
systems
- Fixed issue where mime types weren't being guessed correctly or the mime type 
was coming out blank
- Added VCARD support
- Small bug fixes

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, please
use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe

If this does not work, then look at the "List-Unsubscribe: " tag in the
email header of this message.  Send email to the address specified
there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.



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



[ANNOUNCEMENT] Updated: email-3.1.2-1

2009-03-31 Thread Ross Smith II
I've made a new version of 'email' available for installation.
This is the most recent version of email available from 
http://www.cleancode.org/projects/email.

Changes since 2.5.1:

- Minimal TLS support
- Added UTF-8 support for headers and message
- Added a timeout option
- Fixed bug that was causing 100% CPU usage on some mailings
- Fixed the "No SMTP Server specified" issue that existed on 64bit and Solaris 
systems
- Fixed issue where mime types weren't being guessed correctly or the mime type 
was coming out blank
- Added VCARD support
- Small bug fixes

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, please
use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe

If this does not work, then look at the "List-Unsubscribe: " tag in the
email header of this message.  Send email to the address specified
there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


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



[ANNOUNCEMENT] Updated: cppunit-0.12.0-1

2007-10-26 Thread Ross Smith II
I've updated the version of cppunit to 0.12.0-1.

This is a bugfix release.  The Cygwin release is the vanilla version,
no additional patches.

===

  New in CppUnit 1.12.0:
  --

* Portability:

  - autogen.sh can now be run on Mac OS X (patch #1449380
contributed by Sander Temme).

* MFC Test runner:

  - fixed bug #1498175: double click on failure would sometime
not goto failed assertion in visual studio.

* Documentation:

  - now generated with doxygen 1.4.7 new 'tabs' style.


  New in CppUnit 1.11.4:
  --


* Portability:

  - Support for Embedded Visual C++ 4 added. For this purpose, CppUnit now
provides a very simple stream implementation if none is provided.
This should also help porting on other platforms which have STL but
no stream support. Just make sure that CPPUNIT_NO_STREAM is defined
to 1 in your config header.

* Assertion:

  - Added missing _MESSAGE variants for the following assertions:

CPPUNIT_ASSERT_DOUBLES_EQUAL_MESSAGE
CPPUNIT_ASSERT_THROW_MESSAGE
CPPUNIT_ASSERT_NO_THROW_MESSAGE
CPPUNIT_ASSERT_ASSERTION_FAIL_MESSAGE
CPPUNIT_ASSERT_ASSERTION_PASS_MESSAGE

Notes: change made to CPPUNIT_ASSERT_THROW may cause compilation error
if you're expecting std::exception as it would be caught twice. Contact us
if it is an issue (we don't see much use for such a test).

Some assertions failure message are now more detailed (exception,
expression).
Thanks to Neil Ferguson who contributed this patch.

  - Assertion on real number now output expected and actual value using the
maximum available precision instead of the previous strategy of rounding
to 6 digits.

Thanks to Neil Ferguson who contributed this patch.

* Outputter:

  - XML Ouputter: patch #997006 contributed by Akos Maroy makes the
'stand-alone' attribute of the XML header optional.
See XmlOutputter::setStandalone() & XmlDocument::setStandalone().

  - Better integration of compiler output for gcc on Mac OS X with Xcode
(contributed by Claus Broch).

* MFC Test Runner

  - Integration with VC++ 7.0 & 7.1. Double clicking on a failure will now
to the failure location in the open IDE (no add-in necessary).
This was contributed by Max Quatember and Andreas Pfaffenbichler.

  - Progress bar: now use system color to draw border
(patch from bug #1165875 contributed by Pieter Van Dyck).

* QT Test Runner

  - Fixed display of multi-line messages (patch contributed by Karol 
Szkudlarek).

* Compilation:

  - The standard pkg-config file is now generated on unix (contributed by
Robert Leight).

  - MinGW: patch #1024428 contributed by astar, fixed compilation issue in
Win32DynamicLibraryManager.cpp.

  - MinGW, cygwin: enable build of shared library when using libtool.
patch #1194394 contributed by Stéphane Fillod.

  - autotool: applied patch #1076398 contributed by Henner Sudek. Quote:
 "This patch allows AM_PATH_CPPUNIT to accept version
numbers without minor and micro version.
Now you can do:
AM_PATH_CPPUNIT(1.9)
instead of
AM_PATH_CPPUNIT(1.9.0)"

  - Visual Studio 2005: removed deprecated warning.

* Documentation:

  - Corrected many typos in cookbook and money example. Thanks to all
those who helped !

* Bug Fix:

  - cppunit.m4: patch #946302, AM_PATH_CPPUNIT doesn't report result
if CppUnit is missing.

  - Message/SourceLine: copy constructor have been specifically implemented
to ensure they are thread-safe even if std::string copy constructor
is not (usually on reference count based implementation).

  - TestResultCollector: fixed memory leak occuring when calling reset().

* Contrib:

  - added XSLT for compatibility with Ant junit xml formatter.
Patch #1112053 contributed by Norbert Barbosa.
See xml-xsl/cppunit2junit.xsl and cppunit2junit.txt for details.

  - xml-xsl/report.xsl has been fixed to work with current xml output.

* (Possible) Compatiblity break:

  - All text output is now done on cout() instead of sometime cerr &
sometime cout depending on the component.

  - OStringStream definition has been removed from Portability.h. This
means that  is no longer included, and that ostringstream and
string might not be defined. In practice this should have no impact
since those includes have been moved to other CppUnit headers.

* Notes:

  - CppUnit now uses the alias OStream when refering to std::ostream for
portability.


  New in CppUnit 1.10.2:
  --

* Bug Fix:

  - Memory checker: bug #938753, array bound read in
splitPathString() with substr if an empty string is passed.

  - Memory leaks: bug #952912, many memory leaks removed in the
MFC test plug-in runner.

  - Crash when using CPPUNIT_TEST_SUITE_REGISTRATION with cpp

[ANNOUNCEMENT] Updated: email 2.5.1-1

2007-07-19 Thread Ross Smith II
The cygwin email package has been updated to the current stable version
2.5.1.

To ease packaging, the default configuration files that were stored in
/etc/defaults/etc/email/ are now stored in /etc/defaults/etc/.

The actual configuration files are still kept in /etc/email.

Upstream changelog:

- Fixed bug where an assert caused an abort when encrypting
  any message with gnupg under Cygwin.

- Fixed compile errors saying SIGHUP, SIGINT or other SIG*
  were "undeclared

- Fixed e-mail address parsing problems in which eMail would
  report error's such as an e-mail address was invalid.

- Very small source cleanup.



To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

   *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.



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



[ANNOUNCEMENT] Updated: email-2.5.0-1

2006-06-26 Thread Ross Smith II
Version 2.5.0-1 of email has been uploaded.

Email is a simple command-line program to send emails. It can be configured
to use either your sendmail installation or directly via SMTP.
It supports binary attachments, and a simple text based address book, with 
groups.
Also, if GnuPG is installed, it can digitally sign and encrypt outgoing emails.

Changelog:

- Separated e-mail name and address and only format them in the
  headers.  Only use address surrounded by <> as per RFC 822 for
  the MAIL FROM: and RCPT TO: SMTP commands.

- Added Dstring library which is a string library to growing
  strings.

- Using Dstring's for reading in config file and address book.
  This fixes the MINBUF limitations that were happening with
  very long Groups in the address book.

- Added ability to specify new headers on the command line.

- Handle \r in address book so that Cygwin users don't have to
  put a comment at the end of their lines.

- the --attach and --header option can be specified multiple
  times and also have multiple entries with comma delimeters.


If you have questions or comments, please send them to the Cygwin
mailing list at: cygwin@cygwin.com .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.


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



[ANNOUNCEMENT] New Package: email-2.3.0-2

2004-10-21 Thread Ross Smith II
The following package has recently been added to the Cygwin distribution:

email-2.3.0-2:

Command line sending of email, optionally with GnuPG encryption.
Email is a simple command-line program to send emails. It can be configured
to use either your sendmail installation or directly via SMTP.
It supports binary attachments, and a simple text based address book, with groups.
Also, if GnuPG is installed, it can digitally sign and encrypt outgoing emails.


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

-Ross Smith


- -- *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***


If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

[EMAIL PROTECTED]

If you need more information on unsubscribing, start reading here:

http://sources.redhat.com/lists.html#unsubscribe-simple


Please read *all* of the information on unsubscribing that is available
starting at this URL.


--
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: Burning cygwin distribution CDs

2002-12-27 Thread Ross Smith II
> From: Laurynas Biveinis
>
> I want to burn CDs with full cygwin distribution with sources and so on.
> I've downloaded everything from
> ftp://ftp.gwdg.de/pub/linux/sources.redhat/cygwin/release, but it takes
> almost 1 GB. How should I burn it into 2 CDs so that setup.exe still
> works correctly? What directory layout should I use?

Laurynas,

I fit everything I need on 1 CD, by not including the /xfree directory
(370MB), the /release/XFree86 directory (80MB), and not including the [prev]
and [test] packages listed in setup.ini:

#!/usr/bin/perl -w
use strict;
my $dir = shift || '/hdc1/cygwin';
my $file = $dir . '/setup.ini';
open(FH, $file) || die "Can't open $file: $!";
my $prev = 0;
my $line = 0;
while () {
  $line++;
  if (/\[prev\]/ || /\[test\]/) {
$prev++;
next;
  }
  next unless $prev;
  if (/^\s*$/) {
$prev = 0;
next;
  }
  if (/^\w+:\s*(\S+)\s+/) {
$_ = $1;
next unless m|/|;
$file = $dir . '/' . $_;
if (-e $file) {
  print "deleting $file\n";
  unlink($file);
}
  }
}

Hope that helps,

Ross


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




expat-1.95.5: undefined reference to `XML_ParserCreate'

2002-12-22 Thread Ross Smith II
I'm trying to compile a simple expat program:

#include 
#include 
int main() {
XML_ParserCreate(NULL);
return 0;
}

but I get:

$ gcc -lexpat -L/lib expattest.c
/cygdrive/...:expattest.c: undefined reference to `XML_ParserCreate'

yet:

$ nm /lib/libexpat.a | grep XML_ParserCreate
 T _XML_ParserCreate

So, I tried compiling expat from source via:

cd /usr/src
tar xvzf expat-1.95.5.tar.gz
./expat-1.95.5-1.sh conf
./expat-1.95.5-1.sh prep
./expat-1.95.5-1.sh build

And tried to build one of their examples (make check, the expat test suite,
relies on http://check.sf.net/ to be installed):

cd expat-1.95.5/.obj
$
gcc -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -I/us
r/src/expat-1.95.5/lib -I. -lexpat -L.libs -o examples/outline.c
/usr/src/expat-1.95.5/examples/outline.c
/cygdrive/...: In function `main':
/usr/src/expat-1.95.5/examples/outline.c:60: undefined reference to
`_XML_ParserCreate'

and I *still* get the same error.

I've scanned the mailing list to no avail. What am I possibly doing wrong?

-Ross
CYGWIN_NT-5.0 DURGA 1.3.17(0.67/3/2) 2002-11-27 18:54 i686 unknown


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




RE: cmd.exe as telnetd login shell: "mode con LINES=24 COLS=80" has no effect..

2002-11-29 Thread Ross Smith II
Tom,

The Windows Telnet Service fixes the MORE and DOSKEY problems you describe.

If you want to disallow external telnet, you could block port 23, and
require users to ssh in, and then run

% telnet localhost

Of course, they'll have to enter their NTLM username/password.

You could even change their shell to be a shell script containing this
command.

Can anybody guess why cmd.exe works with the Windows Telnet Service but
fails with cygwin's ssh or telnet?

-Ross

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of [EMAIL PROTECTED]
> Sent: Friday, November 29, 2002 8:10 AM
> To: [EMAIL PROTECTED]
> Subject: cmd.exe as telnetd login shell: "mode con LINES=24 COLS=80" has
> no effect..
>
>
> 
> 
>
> Hello:
>
> A couple of people that insist on using cmd.exe as their login shell when
> they telnet or ssh to our w2kserver.
>
> When the login shell is set to "/cygdrive/c/winnt/system32/cmd",
> and "putty" is the telnet client:
>
>   1) "more < foo" does not work, it has no clue about
>  the window size.
>
> o tried "mode con LINES=24 COLS=80", when I
>   then ran "mode con" it appeared to have "taken",
>   but "more < foo" still did not page correctly
>
> o I tried setting LINES to no avail.
>
> o tried various combinations of "cmd" switches
>   ( "/X" also "/A", did not try "/Y")
>
>   2) I would also like to enable the DOSKEY command history capability,
>  "Up Arrow" literally moves the cursor 1 row up.  I tried
>  "doskey /reinstall" - it has no apparent effect.
>
>   3) I had to kloosh things to get the backspace to do the
>  "erase" function.  I wrapped cmd.exe inside a bash
>  script that did a "stty erase ^H" before it started
>  cmd.exe.  Is there a better way?
>
>   4) If you set the shell to
>  "/cygdrive/c/winnt/system32/cmd", login
>  and then type "bash --login" to get a bash shell
>  (dumb, but needed sometimes), bash hangs.  This
>  is still a mystery.  To work around this I
>  always start a bash session after the user exits
>  cmd.exe - see below.
>
> Any help or ideas would be welcomed.  I'm beginning to lean towards
> the unhappy position that we will have to use Microsoft's or
> Ataman's telnetd; I would love to avoid this.
>
> Pls understand how very much I *appreciate* the cygwin toolset, and that
> I'm an ever-so-humble day in day out, sys admin/end user of your tools.
>
> For more details on what I did see end of this e-mail.
>
> --
> thanks/regards,
> Tom
>   perl -e 'print unpack("u", "\-\=\$\!R\;V1M86XN8V\]M\"\@\`\`");'
>
> --v-v--C-U-T---H-E-R-E-v-v--
> > 17:15:45 Wed Nov 27  /adm/bin/sys/s
> > C7MKES109 adm_tsr > grep build /etc/passwd|fold
> build:unused_by_nt/2000/xp:12122:12119:build,U-MKE\build,S-1-5-21-
> 1177238915-197
> 9792683-1801674531-2122:/user/build:/drv/c/adm/bin/sys/s/cmd_login_shell
> > 17:50:35 Wed Nov 27  /adm/bin/sys/s
> > C7MKES109 adm_tsr > cat /drv/c/adm/bin/sys/s/cmd_login_shell
> #!/bin/bash -
> /bin/stty erase
> /drv/c/winnt/system32/cmd
> /bin/bash --login


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




Updated sshd install scripts

2002-11-10 Thread Ross Smith II
I've updated my sshd install scripts to support named options:

$ sshd_system.sh -?
Usage: sshd_system.sh [options]

options:

  -P|--port port
  -s|--sshd "sshd options"(quotes are required)
  -f|--config   sshd_config_file  (default is /etc/sshd_config)
  -c|--cygwin   "CYGWIN environment variable" (default is "binmode ntsec
tty")
  -?|--help this help screen
  -v|--version

$ sshd_user.sh -?
Usage: sshd_user.sh [options]

options:

  -u|--user username (default is the current user (ross))
  -p|--password password (do not use this option to be prompted for a
password)
  -P|--port port
  -s|--sshd "sshd options"(quotes are required)
  -f|--config   sshd_config_file  (default is /etc/sshd_config)
  -c|--cygwin   "CYGWIN environment variable" (default is "binmode ntsec
tty")
  -S|--privsep  (ignore "UsePrivilegeSeparation Yes" in /etc/sshd_config)
  -?|--help (this help screen)
  -v|--version

The scripts set the correct permissions on all files, and explain how to
deal with

UsePrivilegeSeparation Yes

I've posted the scripts and a short readme at

http://www.netebb.com/cygwin/

And you can download them from

http://www.netebb.com/cygwin/sshd_install_scripts.tgz

I hope you find them useful.

-Ross


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




RE: Trouble with RSA authentication

2002-10-31 Thread Ross Smith II
/usr/doc/Cygwin/openssh-3.4p1-5.README states that RSA authentication only
works if sshd runs under a user account (as opposed to the SYSTEM account).

To that end, I've created 2 shell scripts to allow one to "switch" from
running sshd as SYSTEM to running as a user, and visa versa.

These scripts will also fix the '/var/empty' problem, so they are worthwhile
to run once, even if you will never switch.

I haven't tried it, but you could probably even have a user and a SYSTEM
daemon running at the same time, by running one of the daemons on another
port via the -p option.

Attached and inline are the scripts.

I'll also put the latest versions up at http://www.netebb.com/cygwin/.

I'd love to see these incorporated into cygwin's openssh (or at least a user
contribs) package.

I'm not a cygwin wizard, so feedback is appreciated.

-Ross

#!/bin/sh
# $Id: sshd_user.sh $

case "$1" in
-h | -he | -hel | -help | -? | --h | --he | --hel | --help | --? | /h |
/he | /hel | /help | /?)
echo Usage: $0 [username] [password] ["CYGWIN options"] ["sshd options"]
exit 1
;;
*)
;;
esac

if [ -n "$1" ]
then
USER=$1
fi

CYGRUNSRV=
if [ -n "$2" ]
then
CYGRUNSRV="-w $2"
fi

if [ -n "$3" ]
then
CYGWIN=$3
fi

SSHD=""
if [ -n "$4" ]
then
shift
shift
shift
SSHD=$*
fi

cd

if [ ! -d .ssh ]
then
echo $0: Please run ssh-user-config first to create your .ssh directory.
exit 2
fi

chown ${USER}.None . .ssh /var/empty /etc/ssh_host_* /var/log/sshd.log
chmod 755 . .ssh
chmod 600 .ssh/*
chmod 644 .ssh/*.pub .ssh/authorized_keys? /var/log/sshd.log
chmod 755 /var/empty
cygrunsrv --stop sshd
cygrunsrv --remove sshd
cygrunsrv --install sshd -e "CYGWIN=${CYGWIN}" \
   -u ${USER} \
   ${CYGRUNSRV} \
   -d "sshd as ${USER}" \
   -p /usr/sbin/sshd.exe \
   -1 /var/log/sshd.log \
   -2 /var/log/sshd.log \
   -a "-e -D ${SSHD} "
cygrunsrv --start sshd
#!/bin/sh
# $Id: sshd_system.sh $

case "$1" in
-h | -he | -hel | -help | -? | --h | --he | --hel | --help | --? | /h |
/he | /hel | /help | /?)
echo Usage: $0 [CYGWIN options...]
exit 0
;;
*)
;;
esac

if [ -n "$1" ]
then
CYGWIN="$*"
fi

SSHD=""
if [ -n "$4" ]
then
shift
shift
shift
SSHD=$*
fi

if [ ! -f /etc/ssh_host_key ]
then
echo $0: Please run ssh-host-config first to create your /etc/ssh_host_*
files.
exit 2
fi

chown SYSTEM.SYSTEM /var/empty /etc/ssh_host_* /var/log/sshd.log
chmod 600 /etc/ssh_host_*
chmod 644 /etc/ssh_host_*.pub /var/log/sshd.log
chmod 755 /var/empty
cygrunsrv --stop sshd
cygrunsrv --remove sshd
cygrunsrv --install sshd -e "CYGWIN=${CYGWIN}" \
   -d "sshd as SYSTEM" \
   -p /usr/sbin/sshd.exe \
   -1 /var/log/sshd.log \
   -2 /var/log/sshd.log \
   -a "-e -D ${SSHD}"
cygrunsrv --start sshd


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:cygwin-owner@;cygwin.com]On Behalf
> Of Max Bowsher
> Sent: Thursday, October 31, 2002 4:29 AM
> To: Marcos Lorenzo; [EMAIL PROTECTED]
> Subject: Re: Trouble with RSA authentication
>
>
> Marcos Lorenzo <[EMAIL PROTECTED]> wrote:
> > I finally got sshd working!
> >
> > But I cannot authenticate via RSA. I made the keygen with ssh-keygen
> > in my winbox and copied identity.pub to authorized_keys and identity
> > in my linbox (I have the same files in both machines). I really know
> > how ssh works in linux, but I have some troubles with RSA in cygwin.
> > Below is the message that I got:
> >
> > 12:16:21 marcos@laud~ ssh -i .ssh/identity.mozart -vvv mozart.lab  -1
> > debug1: Connecting to mozart.lab [163.117.144.225] port 22.
> > debug1: Trying RSA authentication with key '.ssh/identity.mozart'
> > debug1: Server refused our key.
>
> Looks like the server logs with debugging enabled will hold the necessary
> info to debug this.
>
> Max.



sshd_user.sh
Description: Binary data


sshd_system.sh
Description: Binary data
--
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/


RE: Cygwin, GNU make and VC++ ?

2002-10-28 Thread Ross Smith II
> From: Of Igor Pechtchanski
> >
> > Anyway, we're making progress in being able to compile with CL.EXE, but
> > we're having trouble with include files. We use the flag
> > '-I/home/user/dg/include' to point to the include directory, but it
> > can't find it.

/home/user/dg/include

makes no sense in Windows.  Use:

C:\home\user\dg\include

or

C:/home/user/dg/include

instead.

-Riss


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




RE: Running Cron on XP (NT)

2002-10-27 Thread Ross Smith II
C:\cygwin\usr\doc\Cygwin\cron.README states

cygrunsrv -I cron -p /usr/sbin/cron -a -D

Does that fail for you?

> From: [EMAIL PROTECTED] [mailto:cygwin-owner@;cygwin.com]On Behalf
> Of Todd Shoenfelt
> 
> I know I've seen documentation on setting up cygwin's cron daemaon, but 
> I can't seem to find it.  I've checked the docs, FAQ, etc...  I'm 
> guessing it involves adding cron as a service.
> 
> Can somebody point me to the docs for this?
> 
> Thanks in Advance,
> 
> Todd


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




ssh patches to fix installation issues

2002-10-23 Thread Ross Smith II
Attached are three small patches to the following files:

/bin/ssh-host-config
/bin/ssh-user-config
/usr/doc/Cygwin/openssh-3.4p1-5.README

to fix some installation issues and better explain using sshd in Windows.

The ssh-user-config changes are due to the fact that the default cygwin
umask is 000. Maybe a .bash_profile could be created containing umask 022
when the user's home directory is first created.  Just a thought.

This is the culmination of 6 hours of list perusing, and hair pulling, so
it's definitely "field tested".

Hope this helps,

Ross Smith

--- ssh-host-config.orig2002-07-07 03:07:12.0 -0700
+++ ssh-host-config 2002-10-23 16:11:12.0 -0700
@@ -164,6 +164,7 @@
   if [ $_nt -gt 0 ]
   then
 chown system.system /var/empty
+chmod 755 /var/empty
   fi
 fi

--- ssh-user-config.orig2002-06-21 13:32:33.0 -0700
+++ ssh-user-config 2002-10-23 16:15:24.0 -0700
@@ -123,6 +123,8 @@
   fi
 fi

+chown `whoami` ${pwdhome}
+
 if [ -e "${pwdhome}/.ssh" -a ! -d "${pwdhome}/.ssh" ]
 then
   echo "${pwdhome}/.ssh is existant but not a directory. Cannot create user
identity files."
@@ -139,6 +141,8 @@
   fi
 fi

+chmod 755 ${pwdhome}/.ssh
+
 if [ ! -f "${pwdhome}/.ssh/identity" ]
 then
   if request "Shall I create an SSH1 RSA identity file for you?"
@@ -196,5 +200,8 @@
   fi
 fi

+chmod 600 ${pwdhome}/.ssh/*
+chmod 644 ${pwdhome}/.ssh/*.pub ${pwdhome}/.ssh/authorized_keys?
+
 echo
 echo "Configuration finished. Have fun!"

--- openssh-3.4p1-5.README.orig 2002-10-23 15:20:39.0 -0700
+++ openssh-3.4p1-5.README  2002-10-23 16:23:03.0 -0700
@@ -123,12 +123,53 @@

 - If you want to authenticate via RSA and you want to login to that
   machine to exactly one user account you can do so by running sshd
-  under that user account. You must change /etc/sshd_config
-  to contain the following:
+  under that user account.
+
+  * Change /etc/sshd_config to contain

   RSAAuthentication yes

-  Moreover it's possible to use rhosts and/or rhosts with
+  * Make sure you have executed the following:
+
+$ ssh-host-config
+$ ssh-user-config
+
+  * Due to the fact that cygwin's default umask is , you will need
+to execute the following (substituting your user name for USERNAME):
+
+   chown USERNAME ~
+   chmod 755 ~ ~/.ssh
+   chmod 600 ~/.ssh/*
+   chmod 644 ~/.ssh/*.pub ~/.ssh/authorized_keys?
+
+  * Reinstall the ssh daemon to run as the user. Execute the following
+(substituting your user name for USERNAME, and your password for
PASSWORD):
+
+   chmod 666 /var/log/sshd.log /var/empty
+   rm -fr /var/log/sshd.log /var/empty
+   touch /var/log/sshd.log
+   chmod 644 /var/log/sshd.log
+   chmod 755 /var/empty
+   chown USERNAME.None /var/empty /etc/ssh_host_* /var/log/sshd.log
+   cygrunsrv --stop sshd
+   cygrunsrv --remove sshd
+   cygrunsrv --install sshd -e "CYGWIN=glob ntsec binmode" \
+  -u USERNAME \
+  -w "PASSWORD" \
+  -d "sshd" \
+  -p /usr/sbin/sshd.exe \
+  -1 /var/log/sshd.log \
+  -2 /var/log/sshd.log \
+  -a "-e -D"
+   cygrunsrv --start sshd
+
+  * NOTE: The user will not be able to login using their Windows password.
+They will only be able to login using RSA authentication.
+
+Therefore, you will need to copy your identity.pub and id_??a.pub
+files into authorized_keys, and authorized_keys2, respectfully.
+
+  Moreover, it's possible to use rhosts and/or rhosts with
   RSA authentication by setting the following in sshd_config:

   RhostsAuthentication yes



ssh-host-config.diff
Description: Binary data


ssh-user-config.diff
Description: Binary data


openssh-3.4p1-5.README.diff
Description: Binary data
--
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/