Re: Messages not delivered to the cygwin@ mailing list

2023-11-06 Thread Ernie Rael via Cygwin
On 23/09/15 1:59 PM, Andrey Repin via Cygwin wrote: Greetings, cygwin-ow...@cygwin.com! It is about 4 months since I lost ability to post to the many mailing lists from my primary address. Messages are seemingly coming into a blackhole - no responses, no rejections, nada. The subscription is

Re: sshd

2022-02-13 Thread Ernie Rael
On 2/13/22 10:56 PM, Andrey Repin wrote: Greetings, Ernie Rael! ... Open Windows Firewall (cygstart WF.msc), find all your sshd rules and trash them. Manually create (or tweak Windows sshd one) a single rule for port rather than executable. Additionally, to resolve conflicts with stock sshd

Re: sshd

2022-02-13 Thread Ernie Rael
reasonably up to date." There's a plethora of Windows troubleshooting tools, and some fun stuff as-well. Cheers - Russell On Sat, Feb 12, 2022 at 9:30 PM Mark Geisert wrote: Ernie Rael wrote: Hi all, I set up cygwin several years ago and have only had one system at home. I've recent

Re: sshd

2022-02-13 Thread Ernie Rael
On 2/12/22 9:29 PM, Mark Geisert wrote: Ernie Rael wrote: Hi all, I set up cygwin several years ago and have only had one system at home. I've recently got a 2nd, linux. I've used ssh locally under cygwin, primarily to get a term for a use with admin priv. And I can ssh from cygwin

sshd

2022-02-12 Thread Ernie Rael
Hi all, I set up cygwin several years ago and have only had one system at home. I've recently got a 2nd, linux. I've used ssh locally under cygwin, primarily to get a term for a use with admin priv. And I can ssh from cygwin to the linux machine. On cygwin I see $ ps -ef |grep sshd

Re: Bug Report

2022-02-08 Thread Ernie Rael
On 2/8/22 2:01 PM, julie77...@gmail.com wrote: Cygwin doesn't create an environment variable in bash to indicate that the platform is Cygwin under Windows. This causes compatibility problems when running various tools. Most of my issues have been with Python tools running Windows Python. I

Re: sshd.exe infected with IDP.Generic?

2020-07-11 Thread Ernie Rael
e11e7fc32e0d9988e280004b6a18ca7e2014c71d/detection On 7/10/2020 12:01 PM, Ernie Rael wrote: On Win7. To get an elevated shell, I typically do "$ ssh xxx@yyy". And not very often. Below is an excerpt of something potentially horrible that just happened. Note the    rm * I exited t

sshd.exe infected with IDP.Generic?

2020-07-10 Thread Ernie Rael
On Win7. To get an elevated shell, I typically do "$ ssh xxx@yyy". And not very often. Below is an excerpt of something potentially horrible that just happened. Note the rm * I exited the shell. I did the "ssh..." again (yeah I'm crazy), in a different bash window. And this time avast

FYI: avast claims setup threat

2020-03-27 Thread Ernie Rael
I just downloaded most recent setup-x86_64, v2.903. Avast was not happy. Threat name: IDP.Generic I did check with pgp2 --verify before I tried it. -ernie -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

How to get the drive a file is on (was Re: /bin/pwd, cygpath -wa fail under native symlink)

2020-01-07 Thread Ernie Rael
. They fail in some cases as described below. If this is a problem for cygwin, is there a win7 command I can use? -ernie On 12/25/2019 2:05 PM, Ernie Rael wrote: (CYGWIN_NT-6.1 spirit 3.1.1(0.340/5/3) 2019-12-18 09:28 x86_64 Cygwin, win7) The windows root is C:, cygwin root is on F:. A native symlink

/bin/pwd, cygpath -wa fail under native symlink

2019-12-25 Thread Ernie Rael
(CYGWIN_NT-6.1 spirit 3.1.1(0.340/5/3) 2019-12-18 09:28 x86_64 Cygwin, win7) The windows root is C:, cygwin root is on F:. A native symlink under C: that points into F: gets an incorrect result from cygpath -wa. Notice that when the current directory is the target of the symlink then the result

setup postinstall mimeinfo errors

2017-06-11 Thread Ernie Rael
During setup postinstall I got a couple of errors; it looks like they are related to mimeinfo/mimeinfo.cache. (It is true that I did not accept all dependencies but I thought I was being careful). I went back into setup and it shows that I have "shared-mime-info: Shared MIME info database"

Re: Use of SHELL env var by login

2016-09-27 Thread Ernie Rael
On 9/27/2016 3:58 AM, Andrew Schulman wrote: I just moved the cygwin installation. The "last" peculiarity I ran into was that the login shell, with the shortcut "F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -", a ps showed /cygdrive/c/cygwin64/bin/bash instead of /usr/bin/bash I

Re: Use of SHELL env var by login

2016-09-26 Thread Ernie Rael
On 9/26/2016 7:18 PM, Linda Walsh wrote: Ernie Rael wrote: I just moved the cygwin installation. The "last" peculiarity I ran into was that the login shell, with the shortcut "F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -", a ps showed /cygdrive/c/cygwin

Use of SHELL env var by login

2016-09-26 Thread Ernie Rael
I just moved the cygwin installation. The "last" peculiarity I ran into was that the login shell, with the shortcut "F:\cygwin64\bin\mintty.exe -i /Cygwin-Terminal.ico -", a ps showed /cygdrive/c/cygwin64/bin/bash instead of /usr/bin/bash I tracked this down the the windows setting for

Re: Setting up cygrunsrv after moving installation to another drive

2016-09-26 Thread Ernie Rael
Thanks Brian, the Windows command to manipulate service configuration is exactly what I needed. -ernie On 9/25/2016 6:17 PM, Brian Inglis wrote: On 2016-09-25 17:28, Ernie Rael wrote: I have just moved (robocopy) cygwin installation from C:/cygwin64 to F:/cygwin64 (win7). My stumbling block

Setting up cygrunsrv after moving installation to another drive

2016-09-25 Thread Ernie Rael
I have just moved (robocopy) cygwin installation from C:/cygwin64 to F:/cygwin64 (win7). My stumbling block is handling cygrunsrv. For cygrunsrv, I thought I could change the service properties to start it from F:/..., but I can't figure out how to do that on Win7. Any suggestions on how

Re: moving Cygwin64 to another drive

2016-09-25 Thread Ernie Rael
Thanks Marco, the -zb option to robocopy did the trick. (Now for the next issues...) -ernie On 9/23/2016 9:59 PM, Marco Atzeri wrote: On 24/09/2016 03:26, Ernie Rael wrote: On 9/23/2016 4:28 PM, Brian Inglis wrote: On 2016-09-23 17:11, Ernie Rael wrote: I found a thread, https://cygwin.com

Re: moving Cygwin64 to another drive

2016-09-23 Thread Ernie Rael
On 9/23/2016 7:06 PM, Brian Inglis wrote: On 2016-09-23 19:26, Ernie Rael wrote: On 9/23/2016 4:28 PM, Brian Inglis wrote: On 2016-09-23 17:11, Ernie Rael wrote: I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg8.html, from last year where Corinna suggests the following (which

Re: moving Cygwin64 to another drive

2016-09-23 Thread Ernie Rael
On 9/23/2016 7:06 PM, Brian Inglis wrote: On 2016-09-23 19:26, Ernie Rael wrote: On 9/23/2016 4:28 PM, Brian Inglis wrote: On 2016-09-23 17:11, Ernie Rael wrote: I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg8.html, from last year where Corinna suggests the following (which

Re: moving Cygwin64 to another drive

2016-09-23 Thread Ernie Rael
On 9/23/2016 4:28 PM, Brian Inglis wrote: On 2016-09-23 17:11, Ernie Rael wrote: I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg8.html, from last year where Corinna suggests the following (which works for her; she notes YMMV) robocopy C:\cygwin64 F:\cygwin64 /e /purge

moving Cygwin64 to another drive

2016-09-23 Thread Ernie Rael
Greetings, I found a thread, https://cygwin.com/ml/cygwin/2015-04/msg8.html, from last year where Corinna suggests the following (which works for her; she notes YMMV) robocopy C:\cygwin64 F:\cygwin64 /e /purge /z /copyall /sl On Win7, I'm on a old cygwin installation (thought

Re: git and absolute Windows-style paths

2016-04-20 Thread Ernie Rael
On 4/20/2016 1:37 PM, Eliot Moss wrote: I think this will do it: function git { declare -a ARGS for n in "$@" ; do ARGS+=("$(cygpath -u -- "${n}")") ; done command git "${ARGS[@]}" } The reason this is a little more complicated than some other approaches might be is that it will also

Re: pthread_attr_init() returning errors

2016-04-20 Thread Ernie Rael
On 4/20/2016 10:22 AM, Canham, Timothy K (348C) wrote: I think I understand what happened now. The call to pthread_attr_init() is contained within a function we use to start threads. It is called successive times and it fails on the second call. It would appear that the stack entry gets laid

Re: git and absolute Windows-style paths

2016-04-20 Thread Ernie Rael
On 4/20/2016 9:10 AM, Brian Clifton wrote: I agree completely- Faking out git by wrapping it as a function in your .bashrc would be an ideal approach. I was the person championing that PR which got rejected, unfortunately. The NPM folks were recommending to use mingw which *is* supported...

Re: How to expand tabs? Where is expand program.

2015-07-02 Thread Ernie Rael
I hit RETURN too quickly... There's also vim's :retab command. -ernie On 7/2/2015 4:14 PM, Richard Heintze wrote: There used to be a very handy cygwin program called expand for expanding tabs into spaces. Now I cannot find it on the nice installation GUI (setup_x86_64.exe). I tried

Re: How to expand tabs? Where is expand program.

2015-07-02 Thread Ernie Rael
On 7/2/2015 4:14 PM, Richard Heintze wrote: There used to be a very handy cygwin program called expand for expanding tabs into spaces. Now I cannot find it on the nice installation GUI (setup_x86_64.exe). $ cygcheck -f /usr/bin/expand.exe coreutils-8.15-3 Probably out of date, but I'd guess

Re: Problem passing file names with embedded space to Windows executable via bash function

2015-06-26 Thread Ernie Rael
On 6/26/2015 12:06 PM, JJ Ottusch wrote: I am trying to define a function in my '.bash_profile' that takes a file or list of files as an argument and passes the list to a Windows executable after converting all the filenames to full path filenames with 'cygpath'. I use something similar to

Re: Problem passing file names with embedded space to Windows executable via bash function

2015-06-26 Thread Ernie Rael
On 6/26/2015 2:27 PM, ncokwq...@sneakemail.com wrote: [ This is meant to be a reply to the response post by Ernie Rael, which I managed to lose so there is no referencing. ] On 6/26/2015 12:50 PM, Ernie Rael wrote: I use something similar to this, perhaps it would meet your needs. You may

Re: [TESTERS needed] New POSIX permission handling

2015-04-11 Thread Ernie Rael
I'm primarily a lurker, reading this list hoping things soak in a bit. So I may be off base on this. In the table below, describing NULL DENY access mask, looks like there's a typo concerning read/execute. (of course it might just be a windows mapping peculiarity that I really didn't want to

Re: Change PS1 when running as administrator

2014-06-17 Thread Ernie Rael
On 6/17/2014 1:45 AM, GrahamC wrote: If we are looking for other alternatives the GROUPS environment variable can also be used: PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ ' for G in ${GROUPS[@]}; do if [ $G = 544 ]; then PS1='\[\e]0;Administrator

Re: Change PS1 when running as administrator

2014-06-17 Thread Ernie Rael
On 6/17/2014 9:34 AM, Andrey Repin wrote: [[ $(id -G) =~ \b544\b ]] was suggested (the suggestion used symbolic name instead of a number and didn't use word boundary). Seems like word boundary is needed, but I couldn't get this to work. Are the regex boundary matchers not supported by

Re: interactive hg (mercurial) using ssh is getting authentication failures to sourceforge

2014-05-12 Thread Ernie Rael
On 5/12/2014 4:20 AM, Andrey Repin wrote: Greetings, Ernie Rael! At the end of this post, there is experimental evidence that the ssh is disasociated from the tty in the when spawned by hg. NOTE: hg is a Win7 command, not compiled with the cygwin dll. Don't you see anything suspicious here