Re: cygwin ssh connection from mac to windows Connection closed by XX.XX.XXX.XX port 22

2022-02-19 Thread Sanjay Gupta
Issue gets resolved when I did and used my domain password.
So my question is, is this needs to always run whenevery password gets
changed as per domain policy ?
I read docs about setuid changes and so forth but unable to understand much.
I have tried creating local account also but still it does not resolve
issue unless I did following.

passwd -R

$ ./passwd.exe -R
This functionality stores a password in the registry for usage by services
which need to change the user context and require network access.  Typical
applications are interactive remote logons using sshd, cron task, etc.
This password will always tried first when any privileged application is
about to switch the user context.

Note that storing even obfuscated passwords in the registry is not overly
secure.  Use this feature only if the machine is adequately locked down.
Don't use this feature if you don't need network access within a remote
session.

You can delete the stored password by specifying an empty password.

Enter your current password:
Re-enter your current password:

Can someone explain use of password -R and why I need to do it ?


On Sat, Feb 19, 2022 at 9:15 AM Sanjay Gupta  wrote:

> Cygwin SSH Server runs on Win 10. SSH is running as a service and using
> local system account as Logon property.
>
> I can successfully login using putty on Win 10 ( connection to localhost
> and providing password when asked) so this works.
>
> Same when I try to connect from MAC, I get error Connection closed by
> XX.XX.XXX.XX port 22
>
> ssh -v -v -v  u...@mypc.com
> OpenSSH_8.1p1, LibreSSL 2.7.3
> debug1: Reading configuration data /Users/macuser/.ssh/config
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: /etc/ssh/ssh_config line 47: Applying options for *
> debug1: /etc/ssh/ssh_config line 51: Applying options for *
> debug1: Connecting to mypc.com port 22.
> debug1: Connection established.
> debug1: identity file /Users/macuser/.ssh/id_rsa type 0
> debug1: identity file /Users/macuser/.ssh/id_rsa-cert type -1
> debug1: identity file /Users/macuser/.ssh/id_dsa type -1
> debug1: identity file /Users/macuser/.ssh/id_dsa-cert type -1
> debug1: identity file /Users/macuser/.ssh/id_ecdsa type -1
> debug1: identity file /Users/macuser/.ssh/id_ecdsa-cert type -1
> debug1: identity file /Users/macuser/.ssh/id_ed25519 type -1
> debug1: identity file /Users/macuser/.ssh/id_ed25519-cert type -1
> debug1: identity file /Users/macuser/.ssh/id_xmss type -1
> debug1: identity file /Users/macuser/.ssh/id_xmss-cert type -1
> debug1: Local version string SSH-2.0-OpenSSH_8.1
> debug1: Remote protocol version 2.0, remote software version OpenSSH_8.8
> debug1: match: OpenSSH_8.8 pat OpenSSH* compat 0x0400
> debug3: fd 5 is O_NONBLOCK
> debug1: Authenticating to mypc.com:22 as 'user'
> debug3: hostkeys_foreach: reading file "/Users/macuser/.ssh/known_hosts"
> debug3: record_hostkey: found key type ECDSA in file 
> /Users/macuser/.ssh/known_hosts:311
> debug3: load_hostkeys: loaded 1 keys from mypc.com
> debug3: order_hostkeyalgs: prefer hostkeyalgs: 
> ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
> debug3: send packet: type 20
> debug1: SSH2_MSG_KEXINIT sent
> debug3: receive packet: type 20
> debug1: SSH2_MSG_KEXINIT received
> debug2: local client KEXINIT proposal
> debug2: KEX algorithms: 
> curve25519-sha256,curve25519-sha...@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
> debug2: host key algorithms: 
> ecdsa-sha2-nistp256-cert-...@openssh.com,ecdsa-sha2-nistp384-cert-...@openssh.com,ecdsa-sha2-nistp521-cert-...@openssh.com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-...@openssh.com,rsa-sha2-512-cert-...@openssh.com,rsa-sha2-256-cert-...@openssh.com,ssh-rsa-cert-...@openssh.com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa
> debug2: ciphers ctos: 
> chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
> debug2: ciphers stoc: 
> chacha20-poly1...@openssh.com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-...@openssh.com,aes256-...@openssh.com
> debug2: MACs ctos: 
> umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,umac-...@openssh.com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
> debug2: MACs stoc: 
> umac-64-...@openssh.com,umac-128-...@openssh.com,hmac-sha2-256-...@openssh.com,hmac-sha2-512-...@openssh.com,hmac-sha1-...@openssh.com,umac...@openssh.com,um

cygwin ssh connection from mac to windows Connection closed by XX.XX.XXX.XX port 22

2022-02-19 Thread Sanjay Gupta
penssh.com
debug2: compression stoc: none,z...@openssh.com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1...@openssh.com MAC:
 compression: none
debug1: kex: client->server cipher: chacha20-poly1...@openssh.com MAC:
 compression: none
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256
SHA256:oD2hFa/JcjHe/xayDBUYl1my190rrIGcKIniYl+hpfA
debug3: hostkeys_foreach: reading file "/Users/macuser/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file
/Users/macuser/.ssh/known_hosts:311
debug3: load_hostkeys: loaded 1 keys from mypc.com
debug3: hostkeys_foreach: reading file "/Users/macuser/.ssh/known_hosts"
debug3: record_hostkey: found key type ECDSA in file
/Users/macuser/.ssh/known_hosts:311
debug3: load_hostkeys: loaded 1 keys from 10.60.193.69
debug1: Host 'mypc.com' is known and matches the ECDSA host key.
debug1: Found key in /Users/macuser/.ssh/known_hosts:311
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey in after 134217728 blocks
debug1: Will attempt key: /Users/macuser/.ssh/id_rsa RSA
SHA256:+7RTuPPGLQgUGUIU+fdAoxnhvZ1cy77GTzniJV8qyWQ
debug1: Will attempt key: /Users/macuser/.ssh/id_dsa
debug1: Will attempt key: /Users/macuser/.ssh/id_ecdsa
debug1: Will attempt key: /Users/macuser/.ssh/id_ed25519
debug1: Will attempt key: /Users/macuser/.ssh/id_xmss
debug2: pubkey_prepare: done
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info:
server-sig-algs=
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue:
publickey,password,keyboard-interactive
debug3: start over, passed a different list
publickey,password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering public key: /Users/macuser/.ssh/id_rsa RSA
SHA256:+7RTuPPGLQgUGUIU+fdAoxnhvZ1cy77GTzniJV8qyWQ
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
Connection closed by XX.XX.XXX.XX port 22

Interestingly, if I stop windows service and manually run
/usr/sbin/sshd.exe -D and then I try to connect from MAC, it works So
obviously looks like some issue with service and may be system account. But
then I have changed service to run as my Domain account but same issue

I have also uninstalled and reinstalled sshd service couple of times as
well but did not help issue. I have also checked whether port no 22 is
getting blocked or not but does not seems like it.

telnet mycygwinserver.com 22
Trying XX.XX.XXX.XX...
Connected to mycygwinserver.com.
Escape character is '^]'.
SSH-2.0-OpenSSH_8.8


Enabled syslog-ng and sshd_config log level to debug3

Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3: mm_key_allowed:
entering [preauth]
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3: mm_request_send:
entering, type 22 [preauth]
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3: mm_key_allowed:
waiting for MONITOR_ANS_KEYALLOWED [preauth]
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3:
mm_request_receive_expect: entering, type 23 [preauth]
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3: mm_request_receive:
entering [preauth]
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3: mm_request_receive: entering
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3: monitor_read:
checking request 22
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug3:
mm_answer_keyallowed: entering
Feb 18 21:18:34 USL37BCPC2 sshd: PID 1188: debug1:
temporarily_use_uid: 4270411484/4266656257 (e=18/18)
Feb 18 21:18:36 USL37BCPC2 sshd: PID 1188: fatal: seteuid 4270411484:
No such device or address
Feb 18 21:18:36 USL37BCPC2 sshd: PID 1188: debug1: do_cleanup
Feb 18 21:18:36 USL37BCPC2 sshd: PID 1188: debug1: Killing privsep child 1189


Any idea why am I having issues with service vs manual running ?

-- 

Thanks
Sanjay Gupta

-- 
Problem reports:  https://cygwin.com/problems.html
FAQ:  https://cygwin.com/faq/
Documentation:https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple


startx cygwin

2019-12-24 Thread Sanjay Gupta
starting startx  following error
Unable to init server: Could not connect to 127.0.0.1: Connection refused

while startxwin runs fine ( I see X server listening)


Welcome to the XWin X Server
Vendor: The Cygwin/X Project
Release: 1.20.5.0
OS: CYGWIN_NT-10.0-18362 USD61FFDZ1 3.1.2-340.x86_64 2019-12-21 15:25 UTC x86_64
OS: Windows 10  [Windows NT 10.0 build 18362] (Win64)
Package: version 1.20.5-3 built 2019-09-06

XWin was started with the following command line:

/usr/bin/X :0 -auth /home/user/.serverauth.8467

(--) Windows reports only 2 mouse buttons, defaulting to -emulate3buttons
(II) xorg.conf is not supported
(II) See http://x.cygwin.com/docs/faq/cygwin-x-faq.html for more information
LoadPreferences: /home/user/.XWinrc not found
LoadPreferences: /etc/X11/system.XWinrc not found
LoadPreferences: See "man XWinrc" to customize the XWin menu.
LoadPreferences: Loading built-in default
winDetectSupportedEngines - RemoteSession: yes
winDetectSupportedEngines - DirectDraw4 installed, allowing ShadowDDNL
winDetectSupportedEngines - Returning, supported engines 0005
winSetEngine - Using Shadow DirectDraw NonLocking
winScreenInit - Using Windows display depth of 32 bits per pixel
winWindowProc - WM_SIZE - new client area w: 1424 h: 821
winFinishScreenInitFB - Masks: 00ff ff00 00ff
MIT-SHM extension disabled due to lack of kernel support
XFree86-Bigfont extension local-client optimization disabled due to lack of 
shared memory support in the kernel
(EE) AIGLX: No native OpenGL in modes with a root window
(II) IGLX: Loaded and initialized swrast
(II) GLX: Initialized DRISWRAST GL provider for screen 0
winPointerWarpCursor - Discarding first warp: 712 410
(--) 2 mouse buttons found
(--) Setting autorepeat to delay=500, rate=31
(--) Windows keyboard layout: "0409" (0409) "US", type 4
(--) Found matching XKB configuration "English (USA)"
(--) Model = "pc105" Layout = "us" Variant = "none" Options = "none"
Rules = "base" Model = "pc105" Layout = "us" Variant = "none" Options = "none"
winProcEstablishConnection - winInitClipboard returned.
winClipboardThreadProc - DISPLAY=:0.0
winClipboardProc - xcb_connect () returned and successfully opened the display.
libGL error: Windows-DRI extension disabled for GDI Generic renderer
winWindowProc - WM_ENTERSIZEMOVE
winWindowProc - WM_EXITSIZEMOVE

** (gnome-session-check-accelerated:8505): WARNING **: Error retrieving 
accessibility bus address: org.freedesktop.DBus.Error.NoReply: Message 
recipient disconnected from message bus without replying
gnome-session-binary: PID 8489: WARNING: Using null backend for session tracking
Unable to init server: Could not connect to 127.0.0.1: Connection refused

** (gnome-session-failed:8511): WARNING **: Cannot open display:
xinit: connection to X server lost

waiting for X server to shut down winDeinitMultiWindowWM - Noting shutdown in 
progress
(II) Server terminated successfully (0). Closing log file.


Sanjay Gupta

--
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: cron problem

2002-02-28 Thread Sanjay Gupta

Thanks Michael,
I have read your post and I guess, I have started cron daemon first. I have
WinNT 4.0 SP6a and I was not able to delete the cron directory. I have tried
rm -rf cron and I have also tried deleteing the cron directory from WinNT
but I couldn't. It was saying that Access is denied or file is being used.
Then I asked my WinNT adminstrator to delete the cron directory and he was
able to do it with little efforts.
After delete cron directory, I first did crontab -e and put a dummy entry in
crontab * * * * * date  date.log
and then it worked.

Sanjay

-Original Message-
From: Michael Adler [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 7:50 AM
To: Sanjay Gupta
Cc: '[EMAIL PROTECTED]'
Subject: Re: cron problem



I reported a related problem a few weeks ago and then reported a fix for
this last week.

Unfortunately, I haven't seen any response from the maintainers--perhaps I
reported this to the wrong list...

Did you start the cron daemon (as some other user?) before creating a
crontab? If yes, then that other user (probably 'SYSTEM') owns /var/cron
and you don't have write access.

On Win2k, you can change the owner of that directory, and then add that
user and give that user full control over /var/cron and /var/cron/tabs.

Next time, make a crontab before starting the cron daemon.


What I think should really happen is that cron should create those
directories during installation so they are owned by whoever installed
cygwin.

Best of luck.

Mike


On Wed, 27 Feb 2002, Sanjay Gupta wrote:

 Date: Wed, 27 Feb 2002 17:31:05 -0800
 From: Sanjay Gupta [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: cron problem

 Why, I am getting the following error when creating cronjobs.

 $ crontab -e
 no crontab for Administrator - using an empty one
 crontab: installing new crontab
 crontab: error renaming tabs/tmp.000107 to tabs/Administrator
 rename: Permission denied
 crontab: edits left in /tmp/crontab.107

 Sanjay

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


Mike


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




Path Name Help

2002-02-28 Thread Sanjay Gupta

OS : Win NT 4.0 SP 6a

I am writing shell script which does Oracle Export. In the script, I have to
give the name of export file, I am not sure how to include the path
information.

Example :-

exp system/manager file=/usr/exp.dmp  full=Y

see the file= parameter, when I use the above command then the Oracle exp
utility is not able to recognize the file information, it gives error
failed to open /usr/exp.dmp for write
So looks like unix style path does not work.

Then I tried window style path

exp system/manager file=d:\Oracle8i\Exp\Exp.dmp  full=Y

This works but it does not create file in d:\Oracle8i\Exp directory but in
creates file in D root directory i.e. in D:\ with name  oracle8iexpexp.dmp.
So this also does not create file in appropiate directory.

Please help me.

Thanks in Advance.



--
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: Path Name Help

2002-02-28 Thread Sanjay Gupta

I am not sure whether this is Oracle issue because if I use the same command
from the command prompt of Windows, it does work.
e.g. the following command works from windows does prompt. The files gets
created in d:\oracle8i\exp directory. 
exp system/manager file=d:\Oracle8i\Exp\Exp.dmp  full=Y

but the same thing does not work well when executed from cygwin shell.


-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 12:38 PM
To: Sanjay Gupta; '[EMAIL PROTECTED]'
Subject: Re: Path Name Help


At 03:34 PM 2/28/2002, Sanjay Gupta wrote:
OS : Win NT 4.0 SP 6a

I am writing shell script which does Oracle Export. In the script, I have
to
give the name of export file, I am not sure how to include the path
information.

Example :-

exp system/manager file=/usr/exp.dmp  full=Y

see the file= parameter, when I use the above command then the Oracle exp
utility is not able to recognize the file information, it gives error
failed to open /usr/exp.dmp for write
So looks like unix style path does not work.

Then I tried window style path

exp system/manager file=d:\Oracle8i\Exp\Exp.dmp  full=Y

This works but it does not create file in d:\Oracle8i\Exp directory but in
creates file in D root directory i.e. in D:\ with name  oracle8iexpexp.dmp.
So this also does not create file in appropiate directory.


Sounds like a problem that you should be asking Oracle about, or am I 
missing why this is a Cygwin issue?



Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX

--
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: Path Name Help

2002-02-28 Thread Sanjay Gupta

Thanks for helpful information. 
If I put the double quotes as you have suggested, it worked in cygwin.

exp system/manager file=d:\Oracle8i\Exp\Exp.dmp  full=Y

Thanks again.


-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 12:55 PM
To: Sanjay Gupta; '[EMAIL PROTECTED]'
Subject: RE: Path Name Help


OK, then you want to review some good documents on basic tenants of UNIX and
it's shells.  

This is neither an Oracle issue nor a Cygwin one.  It's a cockpit error.
For this particular issue, you can resolve your problem by quoting your 
path or escaping the backslashes.  You may find that 'exp' allows you to 
use '/' for the path separator, in which case you can substitute it for 
'\' and not need to make any other syntax changes.  But that's dependent 
on how strict 'exp' is with path separators.  I personally can't say.

Reading up on how UNIX shells works would be a good basis for your 
continued work in this area and save you the time of looking for a list
to post future questions like this to.


Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


At 03:48 PM 2/28/2002, Sanjay Gupta wrote:
I am not sure whether this is Oracle issue because if I use the same
command
from the command prompt of Windows, it does work.
e.g. the following command works from windows does prompt. The files gets
created in d:\oracle8i\exp directory. 
exp system/manager file=d:\Oracle8i\Exp\Exp.dmp  full=Y

but the same thing does not work well when executed from cygwin shell.


-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 12:38 PM
To: Sanjay Gupta; '[EMAIL PROTECTED]'
Subject: Re: Path Name Help


At 03:34 PM 2/28/2002, Sanjay Gupta wrote:
 OS : Win NT 4.0 SP 6a
 
 I am writing shell script which does Oracle Export. In the script, I have
to
 give the name of export file, I am not sure how to include the path
 information.
 
 Example :-
 
 exp system/manager file=/usr/exp.dmp  full=Y
 
 see the file= parameter, when I use the above command then the Oracle exp
 utility is not able to recognize the file information, it gives error
 failed to open /usr/exp.dmp for write
 So looks like unix style path does not work.
 
 Then I tried window style path
 
 exp system/manager file=d:\Oracle8i\Exp\Exp.dmp  full=Y
 
 This works but it does not create file in d:\Oracle8i\Exp directory but
in
 creates file in D root directory i.e. in D:\ with name
oracle8iexpexp.dmp.
 So this also does not create file in appropiate directory.


Sounds like a problem that you should be asking Oracle about, or am I 
missing why this is a Cygwin issue?



Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX

--
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
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Is ksh available on cygwin

2002-02-27 Thread Sanjay Gupta

Hello All,
I want to know, whether ksh is available on cygwin. I am not able to find
ksh. Is it called by some different name in cygwin ?

Thanks
Sanjay

--
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: Is ksh available on cygwin

2002-02-27 Thread Sanjay Gupta

Thanks for information.

I have some Oracle monitoring scripts that have been written for Unix
platforms using ksh. I have one database which is running on NT. I was
trying to port those scripts for cygwin. Since ksh is not available for now,
what I have done is just copy bash.exe to ksh.exe. In this way, I don't have
to do much changes,  because every script has first line #!/bin/ksh and also
the shell script extenstion are .ksh



-Original Message-
From: Andrew T. Schnable [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 27, 2002 2:21 PM
To: Sanjay Gupta; [EMAIL PROTECTED]
Subject: Re: Is ksh available on cygwin


I'm a long-time ksh guy - but I have found bash to be a very workable
substitute.   It starts up in an emacs editing mode - if you prefer vi - 
do a set -o vi.

Andy
[EMAIL PROTECTED]

- Original Message - 
From: Sanjay Gupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 27, 2002 3:46 PM
Subject: Is ksh available on cygwin


 Hello All,
 I want to know, whether ksh is available on cygwin. I am not able to find
 ksh. Is it called by some different name in cygwin ?
 
 Thanks
 Sanjay
 
 --
 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
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




cron problem

2002-02-27 Thread Sanjay Gupta

Why, I am getting the following error when creating cronjobs. 

$ crontab -e
no crontab for Administrator - using an empty one
crontab: installing new crontab
crontab: error renaming tabs/tmp.000107 to tabs/Administrator
rename: Permission denied
crontab: edits left in /tmp/crontab.107

Sanjay

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




Simple Install Question

2002-02-26 Thread Sanjay Gupta

I have sucessfully downloaded and installed cygwin software. It works Great.

Now, I want to install the same software on different machine. So my
question is, will simple file/directory copy will work ? Do, I need to
change any files etc for path setting or any other settings. I just want to
avoid another download from internet.

Thanks

Sanjay


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