Re: Problem uninstalling/deleting cygwin - Solved

2005-01-26 Thread Neven Luetic
 after a (stupid) attempt to install an older version of cygwin over my
 current installation (using the cygwin time machine mentioned some
 days ago) I just wanted to throw it away and start anew, but the cygwin
 directory is undeletable. 
 
 This is due to some symbolic links from versions of uninstalled programs
 pointing to nowhere (i.e. /usr/autotool/devel/bin/automake, which is a
 symlink to automake-1.9). 
 I am able to change owner and permissions of these files to whatever I
 want, but I can not delete them (Permission denied).
 
 What should I do, to get a clean new install?

Although I am sure to have installed both versions as the same user (I
always use a domain login), those links are owned by my computer login.
When I change ownership via windows explorer and set the permissions I
need, everything can be deleted. 

This didn't work with cygwin. Although I was able to change the
ownership of the links to any user I wanted, I was not able to delete
them. 

Thanks for the help

Neven


--
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: Problem uninstalling/deleting cygwin

2005-01-26 Thread Neven Luetic
 I see from later email that you are having problems removing some files
 (specifically symlinks).  I'd check who actually owns those files, using
 the Windows Explorer, (right-click on file) Properties-Security tab.
 See who owns it.  You might need to take ownership of the file, or login
 as the real owner if it was someone else (Administrator?).
 

I should have tried your advice earlier.
It took me really long to figure this out, because I actually installed
both versions under my domain login, so that all should have belonged to
the same user. This was not the case; those symbolic links were owned by
my computer login - in contrast to everything else, that could cleanly
be deleted. 

However, installation over the current version of cygwin happened just
by accident. The reason for the downgrade as such is the ssh hangs
problem (aka Windows XP piping issue), that doesn't occur in 1.5.10-3.

After having wiped out the installed version properly I have now been
able to install the last 1.5.10-3 version without problems. 

Greetings
Neven




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



Problem uninstalling/deleting cygwin

2005-01-25 Thread Neven Luetic
Hello,

after a (stupid) attempt to install an older version of cygwin over my
current installation (using the cygwin time machine mentioned some
days ago) I just wanted to throw it away and start anew, but the cygwin
directory is undeletable. 

This is due to some symbolic links from versions of uninstalled programs
pointing to nowhere (i.e. /usr/autotool/devel/bin/automake, which is a
symlink to automake-1.9). 
I am able to change owner and permissions of these files to whatever I
want, but I can not delete them (Permission denied).

What should I do, to get a clean new install?




--
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: Problem uninstalling/deleting cygwin

2005-01-25 Thread Neven Luetic
Am Dienstag, den 25.01.2005, 12:20 -0500 schrieb Brian Keener:
 Neven Luetic wrote:
  I am able to change owner and permissions of these files to whatever I 
  want, but I can not delete them (Permission denied). 
   
  What should I do, to get a clean new install?
 
 Have you completely rebooted (never hurts just to make sure) and followed the 
 directions in the FAQ:
 
 http://cygwin.com/faq.html

I did reboot and read the faq. However, I didn't *first* delete the
desktop icon and the registry tree, but tried to delete the cygwin dir
prior to this.

 Also you do not mention what OS which might help you get help.
It's W2K.

In the meantime I moved the directory away and I am able to install a
new cygwin and remove it by deleting the directory. However I can not
get rid of the old directory. Everything inside, that's a real file, can
be deleted manually by setting the appropriate privileges  - what
remains are just the stale symbolic links and some symbolic links to
Windows files like /etc/hosts to C:\WINNT\system32\drivers\etc\networks.

Neven


--
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: Problem uninstalling/deleting cygwin

2005-01-25 Thread Neven Luetic
 
 after a (stupid) attempt to install an older version of cygwin over my
 current installation (using the cygwin time machine mentioned some
 days ago) I just wanted to throw it away and start anew, but the cygwin
 directory is undeletable. 
 
 This is due to some symbolic links from versions of uninstalled programs
 pointing to nowhere (i.e. /usr/autotool/devel/bin/automake, which is a
 symlink to automake-1.9). 
 I am able to change owner and permissions of these files to whatever I
 want, but I can not delete them (Permission denied).
 
 What should I do, to get a clean new install?
 
 This subject is really off-topic for this list.  The cygwin time machine
 is not a service supported by this list.  As mentioned at 
 http://www.fruitbat.org/Cygwin/index.html#cygwincirca, you want to 
 consult [EMAIL PROTECTED]

Well, I thought my question had something to do with
permissions/ownerships or perhaps stale symbolic links. I doubt, that
installing older versions on an existing cygwin installation is the only
way to run into such a problem.


--
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: Problem uninstalling/deleting cygwin

2005-01-25 Thread Neven Luetic
  after a (stupid) attempt to install an older version of 
  cygwin over my
  current installation (using the cygwin time machine mentioned some
  days ago) I just wanted to throw it away and start anew, but 
  the cygwin
  directory is undeletable. 
  
  This is due to some symbolic links from versions of 
  uninstalled programs
  pointing to nowhere (i.e. /usr/autotool/devel/bin/automake, 
  which is a
  symlink to automake-1.9). 
  I am able to change owner and permissions of these files to 
  whatever I
  want, but I can not delete them (Permission denied).
  
  What should I do, to get a clean new install?
 
 Hi Neven,
 
   Dunno what's gone wrong here.  Let's take a look at those ACLs: open a DOS
 prompt, change dir into cygwin_root\usr\autotool\bin and show us the output
 from
 
 cacls automake.lnk
 
   It would be good to make _sure_ you're logged in with the same user name 
 when
 trying to delete it as you were when you installed it, particularly if you ran
 setup.exe with the Install Just for me option.  
 
I'm pretty sure I logged in as the same user and I installed globally. 

cacls just says system can't find the given file (translation from
german). As I deleted everything except those links in the meantime, I
think this is ok.

Neven



--
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: Problem uninstalling/deleting cygwin

2005-01-25 Thread Neven Luetic
Am Dienstag, den 25.01.2005, 11:47 -0800 schrieb Andrew DeFaria:
 Neven Luetic wrote:
 
  In the meantime I moved the directory away and I am able to install a 
  new cygwin and remove it by deleting the directory. However I can not 
  get rid of the old directory. Everything inside, that's a real file, 
  can be deleted manually by setting the appropriate privileges - what 
  remains are just the stale symbolic links and some symbolic links to 
  Windows files like /etc/hosts to C:\WINNT\system32\drivers\etc\networks.
 
 I'm curious. What happens if you open a Windows Explorer and attempt to 
 delete the top level directory for this renegade Cygwin install?
 

It says: x cannot be deleted. Access denied. Maybe  the source file is
opened (maybe this translation from german is bad, but I saw it before,
so you'll recognize it).



--
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: Problem uninstalling/deleting cygwin

2005-01-25 Thread Neven Luetic
  It says: x cannot be deleted. Access denied. Maybe the source file is 
  opened (maybe this translation from german is bad, but I saw it 
  before, so you'll recognize it).
 
 Does any process have this file opened? Try using Process Explorer from 
 SysInternals.com.

Process Explorer doesn't show anything (I looked for the handle
cygwin.old, i.e. the top level dir). I killed any process that I could
(including explorer) and stopped AntiVir, Apache and mysql. No change.

Anyway, those stale links cannot be accessed as files at all. I can only
see them using ls or apply chmod/chown on them. Nothing else. If I try
cat file, it says No such file or directory. File zombies.


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



ssh problem on Windows XP

2005-01-21 Thread Neven Luetic
Hello,

I know, problems have been reported concerning the use of ssh on windows
xp (ssh hangs). I would just like to confirm, if this is, what I'm
dealing with. And perhaps somebody knows some workaround until there is
a fix.

I have a cygwin installation on XP at my customers and on W2K at home.
My aim was to make some shellscripts I wrote available to some of the
windows users via a php-interface for administrative tasks on their
linux internet servers. 

I am using ssh with public keys to connect to the linux-servers.
What works:
I can ssh from my linux box to the linux servers.
I can call system(ssh [EMAIL PROTECTED] command) from php on
linux.
I can do all this on my W2K box (Vmware), when I start the apache
service as the same user, that has the public key.
However on the XP computers, I can only use ssh from the command line,
calling some script containing ssh via PHP hangs.

This is the client's errorlog (-vvv):

OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
debug2: ssh_connect: needpriv 0
debug1: Connecting to xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/xxx/.ssh/identity type -1
debug1: identity file /home/xxx/.ssh/id_rsa type -1
debug3: Not a RSA1 key file /home/xxx/.ssh/id_dsa.
debug2: key_type_from_name: unknown key type '-BEGIN'
debug3: key_read: missing keytype
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug3: key_read: missing whitespace
debug2: key_type_from_name: unknown key type '-END'
debug3: key_read: missing keytype
debug1: identity file /home/xxx/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version
OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit:
diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED]
debug2: kex_parse_kexinit:
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,[EMAIL
 PROTECTED]
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit:
hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit: none,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_init: found hmac-md5
debug1: kex: server-client aes128-cbc hmac-md5 none
debug2: mac_init: found hmac-md5
debug1: kex: client-server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 140/256
debug2: bits set: 511/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug3: check_host_in_hostfile: filename /home/xxx/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug3: check_host_in_hostfile: filename /home/xxx/.ssh/known_hosts
debug3: check_host_in_hostfile: match line 1
debug1: Host 'xxx.xxx.xxx' is known and matches the RSA host key.
debug1: Found key in /home/xxx/.ssh/known_hosts:1
debug2: bits set: 536/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received

RE: ssh problem on Windows XP

2005-01-21 Thread Neven Luetic
Where did You get the old version from? I didn't find any older versions
on the cygwin site. It should be a site, that kept a snapshot of the old
releases as complete as possible.

Am Freitag, den 21.01.2005, 06:51 -0800 schrieb Waiss, Garrett:
 Good luck. I gave up and downgraded to cygwin 1.5.10-3. If you are
 running any release after that on XP SP2, there is a piping issue that
 has not been addressed.
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
 Of Neven Luetic
 Sent: Friday, January 21, 2005 2:48 AM
 To: cygwin@cygwin.com
 Subject: ssh problem on Windows XP
 
 
 Hello,
 
 I know, problems have been reported concerning the use of ssh on windows
 xp (ssh hangs). I would just like to confirm, if this is, what I'm
 dealing with. And perhaps somebody knows some workaround until there is
 a fix.
 
 I have a cygwin installation on XP at my customers and on W2K at home.
 My aim was to make some shellscripts I wrote available to some of the
 windows users via a php-interface for administrative tasks on their
 linux internet servers. 
 
 I am using ssh with public keys to connect to the linux-servers.
 What works:
 I can ssh from my linux box to the linux servers.
 I can call system(ssh [EMAIL PROTECTED] command) from php on
 linux.
 I can do all this on my W2K box (Vmware), when I start the apache
 service as the same user, that has the public key.
 However on the XP computers, I can only use ssh from the command line,
 calling some script containing ssh via PHP hangs.
 
 This is the client's errorlog (-vvv):
 
 OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
 debug2: ssh_connect: needpriv 0
 debug1: Connecting to xxx.xxx.xxx [xxx.xxx.xxx.xxx] port 22.
 debug1: Connection established.
 debug1: identity file /home/xxx/.ssh/identity type -1
 debug1: identity file /home/xxx/.ssh/id_rsa type -1
 debug3: Not a RSA1 key file /home/xxx/.ssh/id_dsa.
 debug2: key_type_from_name: unknown key type '-BEGIN'
 debug3: key_read: missing keytype
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug3: key_read: missing whitespace
 debug2: key_type_from_name: unknown key type '-END'
 debug3: key_read: missing keytype
 debug1: identity file /home/xxx/.ssh/id_dsa type 2
 debug1: Remote protocol version 2.0, remote software version
 OpenSSH_3.4p1
 debug1: match: OpenSSH_3.4p1 pat OpenSSH*
 debug1: Enabling compatibility mode for protocol 2.0
 debug1: Local version string SSH-2.0-OpenSSH_3.9p1
 debug2: fd 3 setting O_NONBLOCK
 debug1: SSH2_MSG_KEXINIT sent
 debug1: SSH2_MSG_KEXINIT received
 debug2: kex_parse_kexinit:
 diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-he
 llman-group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit:
 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
 debug2: kex_parse_kexinit:
 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED],aes128-ctr,aes192-ctr,aes256-ctr
 debug2: kex_parse_kexinit:
 hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit:
 hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit: first_kex_follows 0
 debug2: kex_parse_kexinit: reserved 0
 debug2: kex_parse_kexinit:
 diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
 debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
 debug2: kex_parse_kexinit:
 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED]
 debug2: kex_parse_kexinit:
 aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-c
 bc,[EMAIL PROTECTED]
 debug2: kex_parse_kexinit:
 hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit:
 hmac-md5,hmac-sha1,hmac-ripemd160,[EMAIL PROTECTED],hmac-sha1-9
 6,hmac-md5-96
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit: none,zlib
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit:
 debug2: kex_parse_kexinit: first_kex_follows 0
 debug2: kex_parse_kexinit: reserved 0
 debug2: mac_init: found hmac-md5
 debug1: kex: server-client aes128-cbc hmac-md5 none
 debug2: mac_init: found hmac-md5
 debug1: kex: client-server aes128-cbc hmac-md5 none
 debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(102410248192) sent
 debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
 debug2: dh_gen_key: priv key bits set: 140/256
 debug2: bits set: 511/1024
 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
 debug1: expecting