1.3.12-4: editing /etc/passwd causes ssh to fail

2002-10-08 Thread Len Giambrone
This is on an installation using setup today with the latest packages on archive.progeny.net. It's running Win2k Server. I think I've also verified this on my XP HE box at home. I can happily ssh into my box. $ ssh Administrator@foo Warning: Remote host denied X11 forwarding. Last login: Tue

Re: 1.3.12-4: editing /etc/passwd causes ssh to fail

2002-10-08 Thread Len Giambrone
indows NT4 SP6. I had the same > >solution -- back out my changes. I haven't had time to investigate what > >is causing the problem but it starting occurring in one of the recent > >releases of ssh in which privilege separation was added. > > > > > -Original M

Re: 1.3.12-4: editing /etc/passwd causes ssh to fail

2002-10-08 Thread Len Giambrone
the recent > >releases of ssh in which privilege separation was added. > > > > > -Original Message- > > > From: Len Giambrone [mailto:[EMAIL PROTECTED]] > > > Sent: Tuesday, October 08, 2002 4:18 PM > > > To: [EMAIL PROTECTED] > > >

Re: 1.3.12-4: editing /etc/passwd causes ssh to fail

2002-10-08 Thread Len Giambrone
Windows NT4 SP6. I had the same > >solution -- back out my changes. I haven't had time to investigate what > >is causing the problem but it starting occurring in one of the recent > >releases of ssh in which privilege separation was added. > > > > > -Ori

Re: sshd problems

2002-10-10 Thread Len Giambrone
This will help getting you running from the command line: If your files are owned and only readable by SYSTEM, it's harder to run sshd from the command line. Try either: Changing /etc/ssh*key* to be owned by the user you are starting sshd as OR Specifying a new host key with -h: /usr/sbin/s

Re: sshd problems

2002-10-10 Thread Len Giambrone
e > > mkdir -p /var/empty > > # On NT change ownership of that dir to user "system" > > if [ $_nt -gt 0 ] > > then > >chown system.system /var/empty > > fi > >fi > > For me, I have the following permissions: > > $ ls -ld

1.3.10: cygrunsrv dumps core when passwd not present (.NET Server)

2002-04-26 Thread Len Giambrone
, ) 0022FF40 61004236 (00404028, E3E2E1E0, 00780018, 0008) 0022FF60 61004275 (, , , 77F6) 0022FF90 0040740B (00404028, F6461CA0, 80065330, ) 0022FFC0 0040103D (E3E2E1E0, E7E6E5E4, 7FFDF000, ) End of stack trace (more stack frames ma

ssh-add cannot connect to authentication agent

2007-05-16 Thread Len Giambrone
C:\cygwin\usr\X11R6\bin\cygXt-6.dll 27k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXTrap-6.dll 17k 2005/10/27 C:\cygwin\usr\X11R6\bin\cygXtst-6.dll Service : sshd Display name : CYGWIN sshd Current State : Running Controls Accepted : Stop Command : /usr/

Re: ssh-add cannot connect to authentication agent

2007-05-17 Thread Len Giambrone
gt; problems with McAfee on WXP though. > > Tim > > Len Giambrone wrote: > > The agent starts correctly, but I can't get ssh-add to give me anything > > other > > than: > > Could not open a connection to your authentication agent. > > I'm runni

bug in csih?

2015-02-20 Thread Len Giambrone
Running the latest version: $ cygcheck -c cygwin openssh csih Cygwin Package Information Package VersionStatus csih 0.9.8-5OK cygwin 1.7.34-6 OK openssh 6.7p1-2OK When I run ssh-host-config -y -w X I

Re: bug in csih?

2015-02-23 Thread Len Giambrone
* Warning: Defaulting to 'SYSTEM' I will see if I can figure out why the Cygwin name is failing to become WX64LG+cyg_server and get back to you. On 02/23/2015 09:47 AM, Corinna Vinschen wrote: On Feb 23 13:05, Corinna Vinschen wrote: On Feb 20 18:32, Len Giambrone wrote: Running

Re: bug in csih?

2015-02-23 Thread Len Giambrone
\${COMPUTERNAME,,*}" != "${LOGONSERVER,,*}" ] then # Lowercase of USERDOMAIN csih_PRIVILEGED_USERNAME="${COMPUTERNAME,,*}+${username}" fi fi So I'm guessing you should remove the "!". On 02/23/2015 11:15 AM, Len Giambrone wrote: Yes, W

Re: bug in csih?

2015-02-23 Thread Len Giambrone
: On Feb 23 11:48, Len Giambrone wrote: csih_use_file_etc returns 0 on my system (as it should with no passwd file, right?) Uhm, no. It should return 0 if you *use* the files (0 == true in the shell), That should be only the case if you're running Cygwin 1.7.33 or if your nsswitch.conf file sa

Re: bug in csih?

2015-02-23 Thread Len Giambrone
t's what you want. Both of the greps are false (returning 1) and use_file is being set to 0. On 02/23/2015 12:55 PM, Len Giambrone wrote: If that is the case, then there is a bug in csih_old_cygwin: build@wx64lg /usr/share/csih $ uname -a CYGWIN_NT-6.1 wx64lg 1.7.34(0.285/5/3) 2015-02-

Re: bug in csih?

2015-02-23 Thread Len Giambrone
| use_file=0 On 02/23/2015 01:37 PM, Len Giambrone wrote: My bad, csih_old_cygwin works as documented. But there is a bug in csih_use_file_etc: $ cat /etc/nsswitch.conf # /etc/nsswitch.conf # #This file is read once by the first process in a Cygwin process tree. #To pick up changes

gid doesn't display correctly on SAMBA share using AD

2015-02-25 Thread Len Giambrone
Using the latest cygwin: $ cygcheck -c cygwin Cygwin Package Information Package VersionStatus cygwin 1.7.34-6 OK I've asked my admin to update the uidNumber and gidNumber in AD. He has done so: DistinguishedName : CN=build,OU=GroupAccounts,OU=Users,

Re: gid doesn't display correctly on SAMBA share using AD

2015-02-25 Thread Len Giambrone
On 02/25/2015 11:18 AM, Corinna Vinschen wrote: On Feb 25 11:01, Len Giambrone wrote: Using the latest cygwin: $ cygcheck -c cygwin Cygwin Package Information Package VersionStatus cygwin 1.7.34-6 OK I've asked my admin to update the uidNumbe

Re: gid doesn't display correctly on SAMBA share using AD

2015-02-25 Thread Len Giambrone
On 02/25/2015 12:20 PM, Corinna Vinschen wrote: On Feb 25 11:51, Len Giambrone wrote: On 02/25/2015 11:18 AM, Corinna Vinschen wrote: On Feb 25 11:01, Len Giambrone wrote: [...] The username displays correctly, but the group name does not: $ ls -la foo -rw-rw-r-- 1 build Unix_Group+999 0

Re: gid doesn't display correctly on SAMBA share using AD

2015-02-25 Thread Len Giambrone
On 02/25/2015 12:34 PM, Corinna Vinschen wrote: On Feb 25 12:26, Len Giambrone wrote: On 02/25/2015 12:20 PM, Corinna Vinschen wrote: On Feb 25 11:51, Len Giambrone wrote: On 02/25/2015 11:18 AM, Corinna Vinschen wrote: On Feb 25 11:01, Len Giambrone wrote: [...] The username displays

cygrunsrv no longer allows domain user

2015-03-30 Thread Len Giambrone
This used to work (before Corinna's db work): $ cygrunsrv -I myservice -d 'myservice' -u 'ISCINTERNAL\build' -w donotuseme -p /cygdrive/f/tut/install.sh cygrunsrv: Error installing a service: CreateService: Win32 error 1057: The account name is invalid or does not exist, or the password is in

Re: cygrunsrv no longer allows domain user

2015-03-31 Thread Len Giambrone
On 03/31/2015 06:04 AM, Corinna Vinschen wrote: On Mar 30 14:07, Len Giambrone wrote: This used to work (before Corinna's db work): $ cygrunsrv -I myservice -d 'myservice' -u 'ISCINTERNAL\build' -w donotuseme -p /cygdrive/f/tut/install.sh cygrunsrv: Error installing

Re: cygrunsrv no longer allows domain user

2015-03-31 Thread Len Giambrone
On 03/31/2015 02:00 PM, Len Giambrone wrote: On 03/31/2015 06:04 AM, Corinna Vinschen wrote: On Mar 30 14:07, Len Giambrone wrote: This used to work (before Corinna's db work): $ cygrunsrv -I myservice -d 'myservice' -u 'ISCINTERNAL\build' -w donotuseme -p /

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-22 Thread Len Giambrone
I believe that PuTTy is SSH2, while Cygwin is OpenSSH. You can convert them using ssh-keygen: ssh-keygen -f putty_key -i > openssh_key -Len On Jan 22, 2012, at 1:47 AM, Andrew DeFaria wrote: > On 01/21/2012 07:28 PM, Andrey Repin wrote: >> Well, *I* am using Cygwin SSH and PuTTY. And I've

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Len Giambrone
That looks like an SSH2 key, not an OpenSSH key. I downloaded puttygen to see exactly what you see. And after you load a key (generate one) right at the top it says: Public key for pasting into OpenSSH authorized_keys file: _key here_ For example, here is what it says for the key I just generat

Re: Putty and pre-shared keys with Cygwin's sshd

2012-01-23 Thread Len Giambrone
Well, try adding the key to authorized_keys on a box where you have ssh working and see if it works. If not, you know you have a key problem. If so, you know you have a permissions problem. -Len On Jan 23, 2012, at 3:40 PM, Andrew DeFaria wrote: > On 1/23/2012 11:59 AM, Len Giambr

cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-18 Thread Len Giambrone
I'm can't execute shell scripts on a samba share served by our linux boxes. lgiambro@lorien //kitserver/kits $ ls -la len.sh -rwx-- 1 lgiambro releng 24 Apr 18 10:48 len.sh lgiambro@lorien //kitserver/kits $ cat len.sh #!/bin/sh echo it works lgiambro@lorien //kitserver/kits $ ./len.sh -bash

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-18 Thread Len Giambrone
No. That works. presumably because it's executing "bash" and not the script itself. -Len On Apr 18, 2012, at 1:49 PM, Earnie Boyd wrote: > On Wed, Apr 18, 2012 at 11:44 AM, Len Giambrone > wrote: >> I'm can't execute shell scripts on a

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-20 Thread Len Giambrone
n Apr 18, 2012, at 1:49 PM, Earnie Boyd wrote: > >> On Wed, Apr 18, 2012 at 11:44 AM, Len Giambrone >> wrote: >>> I'm can't execute shell scripts on a samba share served by our linux > boxes. >>> >>> lgiambro@lorien //kitserver/kits >>

Re: cygwin 1.7.13-1: can't execute shell scripts on samba share

2012-04-20 Thread Len Giambrone
-Len On Apr 19, 2012, at 7:37 AM, Earnie Boyd wrote: > On Wed, Apr 18, 2012 at 3:44 PM, Len Giambrone > wrote: >> No. That works. presumably because it's executing "bash" and not >> the script itself. > > http://cygwin.com/acronyms/#TOFU > &

bash 4.1.10: SHELLOPTS questions -- different behavior between sh and bash

2011-04-22 Thread Len Giambrone
Greetings. I'm running the latest (as of a few days ago) Cygwin and bash. Cygwin Package Information Package VersionStatus bash 4.1.10-4 OK cygwin 1.7.9-1OK If I set -o igncr, and then export SHELLOPTS as stated in /usr/share/doc/

combination of bash and cmd.exe causes fatal error when used under CYGWIN=tty

2011-04-25 Thread Len Giambrone
Greetings. If I set CYGWIN=tty, then cygwin programs die with *** fatal error - couldn't initialize fd 0 for /dev/ttyN Example: C:\cygwin\home\lgiambro>bash -c "cmd /c 'ls'"   0 [main] ls 7440 C:\cygwin\bin\ls.exe: *** fatal error - couldn't initiali ze fd 0 for /dev/tty7   0 [main] ls

Re: Who's using "CYGWIN=tty" and why?

2011-05-10 Thread Len Giambrone
This time with a subject; apologies if the first one gets through. We use windows native jam which spawns any number of cmd, cygwin, or studio processes. If we spawn it from a Cygwin terminal that doesn't have CYGWIN=tty set, we get: The handle is invalid. Every time output goes to the screen.

determining what user mounted a drive

2011-05-10 Thread Len Giambrone
Is there a way of determining with what user credentials a share was mounted? I suppose I could touch a file on the drive and then find out who the owner is, but that's not ideal. mount will tell me that it's a user mount, but won't tell me WHICH user. Is there some way (windows native or Cygwin