Re: Installing sshd on W7 reveals errors in CSIH_SCRIPT -- patch file against master

2017-05-27 Thread Houder
On Sat, 27 May 2017 14:01:09, Houder wrote:
> --=_f8e475c11eb2497bb7b3a74fbbff7888
> Content-Transfer-Encoding: 7bit
> Content-Type: text/plain; charset=US-ASCII;
>  format=flowed
> 
> On 2017-05-26 21:35, Houder wrote:
> > Hi,
> > 
> > Installing sshd on W7 reveals errors in CSIH_SCRIPT ...
> > 
> > CSIH_SCRIPT = /usr/share/csih/cygwin-service-installation-helper.sh
> 
> Retrieved CSIH_SCRIPT from the master (January 19 2017) here:
> 
>  https://cygwin.com/git/?p=cygwin-apps/csih.git;a=summary
> 
> Attached patch file against master ...

Oh, by the way ...

My sshd daemon works flawlessly on W7 ... despite the fact the I am still
using /etc/passwd and /etc/group as the "database" (i.s.o. Windows' SAM).

(despite F-Secure SAFE, being a mandatory requirement for my machine).

(and, of course, despite the consequences of the errors in CSIH_SCRIPT; I
 took care of them).

Regards,

Henri

-
/etc/nsswitch.conf:

# 31 10 2014

# "db" = any 'place' where Windows keeps account info (my case: local SAM?)

# as far as I can tell, the next two lines forces the Cygwin1.dll to retrieve 
the account
# info solely from /etc/passwd and /etc/group, i.e. Windows' "db" is ignored ...
#
passwd: files
group: files

# as far as I can tell, this line applies to getent (i.e. getpwent() and 
getgrent())
db_enum: files

/etc/passwd:

SYSTEM:*:18:18:U-NT AUTHORITY\SYSTEM,S-1-5-18:/home/SYSTEM:/bin/bash
LOCAL SERVICE:*:19:19:,S-1-5-19:/:/sbin/nologin
NETWORK SERVICE:*:20:20:,S-1-5-20:/:/sbin/nologin
Administrators:*:544:544:,S-1-5-32-544:/:/sbin/nologin
..
cyg_server:*:1014:513:Privileged 
server,U-Seven\cyg_server,S-1-5-21-91509220-1575020443-2714799223-1014:/var/empty:/bin/bash
Henri:*:1000:513:U-Seven\Henri,S-1-5-21-91509220-1575020443-2714799223-1000:/home/Henri:/bin/bash
..
sshd:*:1013:513:U-Seven\sshd,S-1-5-21-91509220-1575020443-2714799223-1013:/var/empty:/bin/bash

/etc/group:

SYSTEM:S-1-5-18:18:
..
Administrators:S-1-5-32-544:544:
..
None:S-1-5-21-91509220-1575020443-2714799223-513:513:
..

@@ ls -ld ~ ~/.ssh
drwxr-xr-x+ 1 Henri None 0 May 27 08:16 /home/Henri
# modified by me? (744 => 700) ... not really required ...
drwx--+ 1 Henri None 0 May 26 13:22 /home/Henri/.ssh

@@ ls -l /etc/ssh*
-rw-r--r-- 1 cyg_server Administrators 1680 May 26 13:15 /etc/ssh_config
-rw--- 1 cyg_server Administrators  668 Jul 25  2016 /etc/ssh_host_
-rw-r--r-- 1 cyg_server Administrators  601 Jul 25  2016 
/etc/ssh_host_.pub
-rw-r--r-- 1 cyg_server Administrators 3225 May 26 16:44 /etc/sshd_config

@@ ls -ld /var/empty /var/run
drwxr-xr-x+ 1 cyg_server Administrators 0 May 26 12:45 /var/empty
drwxrwxrwt+ 1 Henri  None   0 May 26 21:28 /var/run

 - "/var/empty must be owned by root and not group or world-writable."
 - that is, owned by "cyg_server" (the privileged account, acting as the root 
user here)

@@ ls -l /var/run
-rw-r--r-- 1 cyg_server None   5 May 27 07:54 sshd.pid
# modified permissions to 660 for aestetic reason only
-rw-rw 1 Henri  None 640 May 26 18:50 utmp

@@ ls -l /var/log/sshd.log # file exists if one has redirected the output of 
sshd.exe ...
-rw-r--r-- 1 cyg_server None 1767 May 26 21:28 /var/log/sshd.log

@@ getfacl /var/tmp # relevant here is ownership by cyg_server ...
# file: /var/empty
# owner: cyg_server
# group: Administrators
user::rwx
group::r-x
group:SYSTEM:r-x
group:Administrators:r-x
mask:r-x
other:r-x
default:user::rwx
default:group::r-x
default:other:r-x

@@ getfacl /var/run
# file: /var/run
# owner: Henri
# group: None
# flags: --t
user::rwx
group::rwx
group:SYSTEM:rwx
group:Administrators:rwx
mask:rwx
other:rwx
default:user::rwx
default:group::r-x
default:other:r-x

=


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



ITP stoken 0.91

2017-05-27 Thread David Burrow
Initial submission

>From the author's website: https://sourceforge.net/p/stoken/wiki/Home/

stoken - Software Token for Linux/UNIX

stoken is an open source tokencode generator compatible with RSA SecurID
128-bit (AES) tokens. It is a hobbyist project, not affiliated with or
endorsed by RSA Security.

stoken offers the following interfaces:

   - Interactive or batched CLI: "stoken"
   - GTK+ graphical UI: "stoken-gui"
   - Shared library for use with external programs: "libstoken.so.1"
   - JNI (Java) API compatible with Android

--
License
In the source directory of the project, in the README.md file, you find:

## Misc

Author: Kevin Cernekee cerne...@gmail.com

License: LGPLv2.1+

--
Download
I've put the cygport generated files on my wife's website that I also maintain
it... this is the default virtual host for non-named domain requests -
it is the IP address of http://smartdecorating.com

https://108.59.252.62/FOSS/cygwin-ports/stoken/


Re: cygwin cross-compiler on linux host

2017-05-27 Thread Dan Kegel
On Sat, May 27, 2017 at 11:25 AM, Michele  wrote:
>>I'm running Linux Debian as host and i would like to create a
>>cross-compiler like mingw that uses cygwin.dll as libc, so I can
>>compile software with POSIX support such as bash..is this possible?
>
> the target of course is a WINDOWS (XP) system.

cygwin no longer supports windows XP; see https://cygwin.com/

--
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 cross-compiler on linux host

2017-05-27 Thread Michele


Il 27 maggio 2017 20:22:46 CEST, Michele  ha scritto:
>I'm running Linux Debian as host and i would like to create a
>cross-compiler like mingw that uses cygwin.dll as libc, so I can
>compile software with POSIX support such as bash..is this possible?

the target of course is a WINDOWS (XP) system.

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



cygwin cross-compiler on linux host

2017-05-27 Thread Michele
I'm running Linux Debian as host and i would like to create a cross-compiler 
like mingw that uses cygwin.dll as libc, so I can compile software with POSIX 
support such as bash..is this possible?

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



[ANNOUNCEMENT] Updated: openmpi-1.10.7-1

2017-05-27 Thread Marco Atzeri

Version 1.10.7-1  of packages

   libopenmpi12
   libopenmpicxx1
   libopenmpifh12
   libopenmpiuse1
   libopenmpi-devel
   libopenmpiusef08_11
   libopenmpiusetkr6
   openmpi

are available in the Cygwin distribution:

CHANGES
Latest upstream bug fix relase

Full upstream changes:
https://github.com/open-mpi/ompi/blob/master/NEWS
https://www.mail-archive.com/announce@lists.open-mpi.org/msg00100.html

DESCRIPTION
Open MPI : A High Performance Message Passing Library

The Open MPI Project is an open source MPI-3 implementation that
is developed and maintained by a consortium of academic, research,
and industry partners

CYGWIN NOTES
openmpi requires a running cygserver

HOMEPAGE
http://www.open-mpi.org/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .

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



[ANNOUNCEMENT] Updated: arpack-3.5.0-1

2017-05-27 Thread Marco Atzeri

New versions 3.5.0-1 of

  arpack (source)
  libarpack-devel
  libarpack0
  libparpack-devel
  libparpack0

for cygwin are available in the Cygwin distribution:

DESCRIPTION
ARPACK is a collection of Fortran77 subroutines designed to solve large
scale eigenvalue problems.

ARPACK software is capable of solving large scale symmetric,
nonsymmetric, and generalized eigenproblems from significant
application areas. The software is designed to compute a few (k)
eigenvalues with user specified features such as those of largest
real part or largest magnitude. Storage requirements are on the order
of n*k locations. No auxiliary storage is required. A set of Schur
basis vectors for the desired k-dimensional eigen-space is computed
which is numerically orthogonal to working precision. Numerically
accurate eigenvectors are available on request.

HOMEPAGE
https://github.com/opencollab/arpack-ng
http://forge.scilab.org/index.php/p/arpack-ng/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .

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



Updated: arpack-3.5.0-1

2017-05-27 Thread Marco Atzeri

New versions 3.5.0-1 of

  arpack (source)
  libarpack-devel
  libarpack0
  libparpack-devel
  libparpack0

for cygwin are available in the Cygwin distribution:

DESCRIPTION
ARPACK is a collection of Fortran77 subroutines designed to solve large
scale eigenvalue problems.

ARPACK software is capable of solving large scale symmetric,
nonsymmetric, and generalized eigenproblems from significant
application areas. The software is designed to compute a few (k)
eigenvalues with user specified features such as those of largest
real part or largest magnitude. Storage requirements are on the order
of n*k locations. No auxiliary storage is required. A set of Schur
basis vectors for the desired k-dimensional eigen-space is computed
which is numerically orthogonal to working precision. Numerically
accurate eigenvectors are available on request.

HOMEPAGE
https://github.com/opencollab/arpack-ng
http://forge.scilab.org/index.php/p/arpack-ng/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .


Updated: openmpi-1.10.7-1

2017-05-27 Thread Marco Atzeri

Version 1.10.7-1  of packages

   libopenmpi12
   libopenmpicxx1
   libopenmpifh12
   libopenmpiuse1
   libopenmpi-devel
   libopenmpiusef08_11
   libopenmpiusetkr6
   openmpi

are available in the Cygwin distribution:

CHANGES
Latest upstream bug fix relase

Full upstream changes:
https://github.com/open-mpi/ompi/blob/master/NEWS
https://www.mail-archive.com/announce@lists.open-mpi.org/msg00100.html

DESCRIPTION
Open MPI : A High Performance Message Passing Library

The Open MPI Project is an open source MPI-3 implementation that
is developed and maintained by a consortium of academic, research,
and industry partners

CYGWIN NOTES
openmpi requires a running cygserver

HOMEPAGE
http://www.open-mpi.org/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .


Re: GNU screen trouble

2017-05-27 Thread Dan Kegel
On Sat, May 27, 2017 at 4:27 AM, Andrey Repin  wrote:
> # uname -a; screen --version; screen -admS mc-server-session
> CYGWIN_NT-6.1 daemon2 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
> Screen version 4.05.01 (GNU) 25-Feb-17
>
> # screen -S mc-server-session -Q windows
> 

I see something similar:

$ uname -a
CYGWIN_NT-10.0 WIN10-BB-01 2.6.0(0.304/5/3) 2016-08-31 14:32 x86_64 Cygwin

buildbot@WIN10-BB-01 ~
$ apt-cyg install screen
$ screen --version
Screen version 4.04.00 (GNU) 19-Jun-16

$ screen
(inside the new screen:)
$ screen -Q info
(hangs 3 out of 4 tries so far)

On Linux, same sequence outputs stuff to stdout without hanging.

strace on cygwin shows
...
  204  185879 [main] screen 13324 fhandler_base::close: closing
'/tmp/uscreens/S-buildbot/16948.pty1.WIN10-BB-01-queryA' handle 0x288
  114  185993 [main] screen 13324 chmod: 0 =
chmod(/tmp/uscreens/S-buildbot/16948.pty1.WIN10-BB-01-queryA, 0600)
   94  186087 [main] screen 13324 getpid: 13324 = getpid()
   40  186127 [main] screen 13324 cygwin_listen: 0 = listen(3, 5)
   34  186161 [main] screen 13324 getpid: 13324 = getpid()
   34  186195 [main] screen 13324 fcntl64: fcntl(3, 6, ...)
   36  186231 [main] screen 13324 fhandler_socket::fcntl: owner set to 13324
   33  186264 [main] screen 13324 fcntl64: 0 = fcntl(3, 6, 0x340C)
   34  186298 [main] screen 13324 seteuid32: uid: 197609 myself->uid:
197609 myself->gid: 197121
   34  186332 [main] screen 13324 seteuid32: Nothing happens
   33  186365 [main] screen 13324 setegid32: new egid: 197121 current: 197121
   40  186405 [main] screen 13324 sigaction_worker: signal 19, newact
0x8800 (handler 0x100422520), oa 0x8680
   34  186439 [main] screen 13324 sigaction: 0 = sigaction(19,
0x8800, 0x87E0)
   34  186473 [main] screen 13324 sigaction_worker: signal 1, newact
0x8800 (handler 0x100422530), oa 0x8680
   34  186507 [main] screen 13324 sigaction: 0 = sigaction(1,
0x8800, 0x87E0)
   40  186547 [main] screen 13324 write: write(4, 0x8880, 12584)
  371  186918 [main] screen 13324 write: 12584 = write(4, 0x8880, 12584)
   75  186993 [main] screen 13324 close: close(4)
  157  187150 [main] screen 13324 fhandler_socket::close: 0 =
fhandler_socket::close()
   51  187201 [main] screen 13324 close: 0 = close(4)
   36  187237 [main] screen 13324 set_signal_mask: setmask 0, newmask
0, mask_bits 0
   33  187270 [main] screen 13324 handle_sigsuspend: oldmask 0x0, newmask 0x0

The hang is after that handle_sigsuspend line in the three times I've seen it,
right before screen would have printed Remove dead screens with 'screen -wipe'.

Seems highly repeatable, at least on my old install.
A little quality time with the source and maybe gdb would probably be
illuminating.
- Dan

--
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: Installing sshd on W7 reveals errors in CSIH_SCRIPT -- patch file against master

2017-05-27 Thread Houder

On 2017-05-26 21:35, Houder wrote:

Hi,

Installing sshd on W7 reveals errors in CSIH_SCRIPT ...

CSIH_SCRIPT = /usr/share/csih/cygwin-service-installation-helper.sh


Retrieved CSIH_SCRIPT from the master (January 19 2017) here:

https://cygwin.com/git/?p=cygwin-apps/csih.git;a=summary

Attached patch file against master ...

Regards,
Henridiff --git a/master/cygwin-service-installation-helper.sh b/henri/cygwin-service-installation-helper.sh
index a0b6216..14a40c1 100644
--- a/master/cygwin-service-installation-helper.sh
+++ b/henri/cygwin-service-installation-helper.sh
@@ -2566,7 +2566,7 @@ readonly -f csih_old_cygwin
 #
 # Otherwise, we need the files.
 #
-#   Returns 0 if files shall be used, 1 otherwise.
+#   Returns 1 if files shall be used, 0 otherwise.
 # ==
 csih_use_file_etc()
 {
@@ -3003,6 +3003,12 @@ csih_create_privileged_user()
 	  csih_inform "the '${csih_PRIVILEGED_USERNAME}' account."
 	  echo ""
 
+  # If we use /etc account DB only, write new account to /etc/passwd
+  if csih_use_file_etc passwd
+  then
+/usr/bin/mkpasswd -l -u "${csih_PRIVILEGED_USERNAME}" >> "${SYSCONFDIR}/passwd"
+  fi
+
 	  if ! passwd -e "${csih_PRIVILEGED_USERNAME}" >/dev/null
 	  then
 	csih_warning "Setting password expiry for user '${csih_PRIVILEGED_USERNAME}' failed!"
@@ -3063,12 +3069,6 @@ csih_create_privileged_user()
 fi
   fi
 
-  # If we use /etc account DB only, write new account to /etc/passwd
-  if csih_use_file_etc passwd
-  then
-	/usr/bin/mkpasswd -l -u "${csih_PRIVILEGED_USERNAME}" >> "${SYSCONFDIR}/passwd"
-  fi
-
   return "${ret}"
 fi # ! username_in_sam
 return 1 # failed to create user (or prevented by auto-answer veto)

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

GNU screen trouble

2017-05-27 Thread Andrey Repin
Greetings, All!

# uname -a; screen --version; screen -admS mc-server-session
CYGWIN_NT-6.1 daemon2 2.8.0(0.309/5/3) 2017-04-01 20:47 x86_64 Cygwin
Screen version 4.05.01 (GNU) 25-Feb-17

# screen -S mc-server-session -Q windows


If I SEGV the hung child, there's a stacktrace, though I don't know how useful
it is.
Anything I can do to help trace it down?

Stack trace:
FrameFunctionArgs
0007CF0  0018005CC8C (000E3F4, 000F6A8, 0007785DD48, 000DE50)
0007D90  0018005E25B (000, 000, 1A4, 000)
0007FE0  0018011E383 (0060610, 01F0180, 0018030B218, 0018030C1C0)
00082D0  0018011B0AE (0008570, 000, 000, 0008250)
00084D0  0018011B539 (0018018F3B2, 000, 00082F0, 006)
00084D0  0018011B6EA (0018021D49F, 00180047D70, 000, 00B)
00084D0  0018011B99F (7B007F00030003, 00B, 00100453035, 
65657263735B0A0D)
00084D0  00100401335 (00805010004, 06162C0, 0008560, 001)
00084D0  0018005E25B (001, 000, 002, 000)
0008840  00180116E80 (001, 000, 002, 000)
0008840  00100423C76 (001, 000, 002, 000)
End of stack trace


-- 
With best regards,
Andrey Repin
Saturday, May 27, 2017 14:08:17

Sorry for my terrible english...


--
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: Installing sshd on W7 reveals errors in CSIH_SCRIPT

2017-05-27 Thread Houder

On 2017-05-26 21:35, Houder wrote:

Hi,

Installing sshd on W7 reveals errors in CSIH_SCRIPT ...

CSIH_SCRIPT = /usr/share/csih/cygwin-service-installation-helper.sh

Just now I installed the sshd daemon on my W7 (64-bits Cygwin); I am 
still

using /etc/{passwd,group} as the "database" (i.e. NOT Windows SAM).

Invocation of /usr/bin/ssh-host-config (in an elevated shell) 
genenerated

the following TWO warnings:


The error in csih_create_privileged_user() appears to have been 
corrected

already om March 11 2016 (Achim Gratz) ...

commit: 128ed704ed13cda2f3b2e336dba4aeb27a70bdd6


https://cygwin.com/git/?p=cygwin-apps/csih.git;a=commit;f=cygwin-service-installation-helper.sh;h=128ed704ed13cda2f3b2e336dba4aeb27a70bdd6


HOWEVER the whole statement (mkpasswd -l ...)must be moved UPWARDS in
the function, as I described in my first post.

The error was originally reported by Nick Batlle in

https://cygwin.com/ml/cygwin/2016-03/msg00154.html

Regards,

Henri

--
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: Memcache/d (Orig: Re: Composer segfault on multiple configurations)

2017-05-27 Thread Sky Diver
On Fri, May 26, 2017 at 12:11 AM, Richard H Lee wrote:
> On 25/05/2017 08:50, Sky Diver wrote:
> PHP 5.5.9, PHP 5.6.2 on Cygwin?
> Were they even released on Cygwin?
Sure did. Requires a bit of digging through the "cygwin time machine"
archive but they are all there.

> Unfortunately, I think memcache is a separate package from php and it would
> not be compiled in by cygports.
Due to an accident, I happened to delete my entire C:\cygwin\bin
directory a few days back when installing and re-installing various
cygwin versions.
Currently I can't get Memcache to work anymore, but I definitely had
Memcache-related code running under cygwin with no problems.

> For most websites memcache/d is optional. If the website detects that
> memcache/d is not present during setup, it simply does not use it.
I agree with that and I guess the fastest solution would be to use
Memcache (or Memcachd or apc_*()) if present or ignore if it's not.

Thank you.

--
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: setup release candidate - no problems noticed

2017-05-27 Thread L A Walsh

Jon Turney wrote:


Please test and give feedback to cygwin@cygwin.com. If no regressions 
are discovered in the next few days, it will be promoted to release.


Didn't notice any problems (Win7SP1x64).

FWIW, my download goes through squid (but not one needing authentication).




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