Re: [OT] patch.exe on Vista is unusable.
- Original Message - From: Sisyphus [EMAIL PROTECTED] To: perl-win32-users perl-win32-users@listserv.ActiveState.com Sent: Thursday, September 25, 2008 1:41 PM Subject: [OT] patch.exe on Vista is unusable. . . Does anyone have a working patch.exe on Vista ? There's actually nothing wrong with the patch.exe files. The problem is that Vista won't let me run any executable whose name =~ m/patch/i without first getting my Administrator password. Vista doesn't care what the file actually does - it just decides that any executable whose name =~ m/patch/i needs admin privileges to run, and that it can't be run from the command line. (This of course means that I can rename patch.exe to, say, othername.exe, and I can then run it fine - but I have to run it as 'othername', not 'patch'.) Despite the fact that this is a great and wondrous innovation on the part of Microsoft (I bet Linux wish they'd thought of it first), I would like to remove this behaviour. Anyone know how to do that ? Cheers, Rob Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
RE: [OT] patch.exe on Vista is unusable.
- Original Message - From: Sisyphus [EMAIL PROTECTED] To: perl-win32-users perl-win32-users@listserv.ActiveState.com Sent: Thursday, September 25, 2008 1:41 PM Subject: [OT] patch.exe on Vista is unusable. Does anyone have a working patch.exe on Vista ? There's actually nothing wrong with the patch.exe files. The problem is that Vista won't let me run any executable whose name =~ m/patch/i without first getting my Administrator password. Vista doesn't care what the file actually does - it just decides that any executable whose name =~ m/patch/i needs admin privileges to run, and that it can't be run from the command line. (This of course means that I can rename patch.exe to, say, othername.exe, and I can then run it fine - but I have to run it as 'othername', not 'patch'.) Despite the fact that this is a great and wondrous innovation on the part of Microsoft (I bet Linux wish they'd thought of it first), I would like to remove this behaviour. Anyone know how to do that ? Cheers, Rob ## You should be able to run it from the command line once you have a command window up that has already passed the password test. i.e. Right click on the command icon (mine is in the start menu) and choose Run as Administrator. I'm not sure if this is what you are looking for? Jack ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: NET SSH2 ppm for 5.10
Michael Ellery wrote: does anyone know of a source for a NET::SSH2 ppm for 5.10? I managed to get this from uwinnipeg for 5.8, but ppm is telling me it can't find it in the 5.10 repository (now that I've upgraded). Try this: ppm install http://trouchelle.com/ppm10/Net-SSH2.ppd -- Serguei Trouchelle ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: NET SSH2 ppm for 5.10
Serguei Trouchelle wrote: Try this: ppm install http://trouchelle.com/ppm10/Net-SSH2.ppd yes, indeed - that seems to have worked for me. Thanks for that...and to Rob for offering his own private build to me. Regards, Mike ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Re: NET SSH2 ppm for 5.10
- Original Message - From: Serguei Trouchelle [EMAIL PROTECTED] . . Try this: ppm install http://trouchelle.com/ppm10/Net-SSH2.ppd Didn't realize you had built one, Serguei. When I use your ppm, if I run the attached test script (using the SSH2 server on my linux box at 192.168.0.3 for the extended tests) , the script segfaults after test 28 has been run. Here's the output: --- C:\_32\comp\Net-SSH2-0.18_5.10perl t/Net-SSH2.t 1..72 ok 1 - use Net::SSH2; ok 2 - new session isa Net::SSH2 ok 3 - error state clear ok 4 - set banner ok 5 - LIBSSH2_* constants ok 6 - libSSH2 version 0.18 0.16 ok 7 - list version match ok 8 - decimal version matches ok 9 - banner is SSH-2.0-libssh2_0.18 ok 10 - poll indefinite ok 11 - poll 1/4 second To test the connection capabilities of Net::SSH2, we need a test site running a secure shell server daemon. Enter 'localhost' to use this host. Select host [ENTER to skip]: 192.168.0.3 ok 12 - connect to 192.168.0.3 ok 13 - kex method: diffie-hellman-group-exchange-sha1 ok 14 - hostkey method: ssh-rsa ok 15 - crypt_cs method: aes256-cbc ok 16 - crypt_sc method: aes256-cbc ok 17 - mac_cs method: hmac-sha1 ok 18 - mac_sc method: hmac-sha1 ok 19 - comp_cs method: none ok 20 - comp_sc method: none ok 21 - have MD5 hostkey hash ok 22 - have SHA1 hostkey hash Enter username: rob ok 23 - authenticate: publickey,password,keyboard-interactive ok 24 - list matches comma-separated ok 25 - not authenticated yet Enter password: ok 26 - authenticated via: password ok 27 - authenticated successfully ok 28 - new channel isa Net::SSH2::Channel At which point the process gets killed --- With the ppm that I built (and which is now available from the uwinnipeg rep), that doesn't happen: --- C:\_32\comp\Net-SSH2-0.18_5.10perl t/Net-SSH2.t 1..72 ok 1 - use Net::SSH2; ok 2 - new session isa Net::SSH2 ok 3 - error state clear ok 4 - set banner ok 5 - LIBSSH2_* constants ok 6 - libSSH2 version 0.18 0.16 ok 7 - list version match ok 8 - decimal version matches ok 9 - banner is SSH-2.0-libssh2_0.18 ok 10 - poll indefinite ok 11 - poll 1/4 second To test the connection capabilities of Net::SSH2, we need a test site running a secure shell server daemon. Enter 'localhost' to use this host. Select host [ENTER to skip]: 192.168.0.3 ok 12 - connect to 192.168.0.3 ok 13 - kex method: diffie-hellman-group-exchange-sha1 ok 14 - hostkey method: ssh-rsa ok 15 - crypt_cs method: aes256-cbc ok 16 - crypt_sc method: aes256-cbc ok 17 - mac_cs method: hmac-sha1 ok 18 - mac_sc method: hmac-sha1 ok 19 - comp_cs method: none ok 20 - comp_sc method: none ok 21 - have MD5 hostkey hash ok 22 - have SHA1 hostkey hash Enter username: rob ok 23 - authenticate: publickey,password,keyboard-interactive ok 24 - list matches comma-separated ok 25 - not authenticated yet Enter password: ok 26 - authenticated via: password ok 27 - authenticated successfully ok 28 - new channel isa Net::SSH2::Channel ok 29 - set blocking ok 30 - not at EOF ok 31 - normal extended data handling ok 32 - merge extended data ok 33 - empty setenv ok 34 - set environment variables ok 35 - verify session ok 36 - set disconnect callback ok 37 - SFTP session isa Net::SSH2::SFTP ok 38 - verify session ok 39 - create directory net_ssh2_4048 ok 40 - stat directory ok 41 - type is directory ok 42 - directory name matches ok 43 - put t/Net-SSH2.t to remote ok 44 # skip - IO::Scalar required ok 45 # skip - IO::Scalar required ok 46 - unlink non-existant file fails ok 47 - got LIBSSH2_FX_NO_SUCH_FILE error ok 48 - rename net_ssh2_4048/Net-SSH2.t - net_ssh2_4048/Net-SSH2.t.renamed ok 49 - stat net_ssh2_4048/Net-SSH2.t.renamed ok 50 - stat filename matches ok 51 - stat filesize matches ok 52 - opened file isa Net::SSH2::File ok 53 - compare stat and fstat ok 54 - compare fstat % and %$ ok 55 - opened directory isa Net::SSH2::Dir ok 56 - found net_ssh2_4048/Net-SSH2.t.renamed ok 57 - opened file isa Net::SSH2::File 'ot ok 58 - read '\# THIS LINE WILL BE READ BY A TEST BELOW '' Failed test 'read '\# THIS LINE WILL BE READ BY A TEST BELOW # at t/Net-SSH2.t line 192. ' got: '# THIS LINE WILL BE READ BY A TEST BELOW # expected: '# THIS LINE WILL BE READ BY A TEST BELOW' ok 59 - unlink net_ssh2_4048/Net-SSH2.t.renamed ok 60 - remove directory net_ssh2_4048 ok 61 - close SFTP session ok 62 - exec 'ls -d /' not ok 63 - got poll response # Failed test 'got poll response' # at t/Net-SSH2.t line 205. not ok 64 - got input event # Failed test 'got input event' # at t/Net-SSH2.t line 206. not ok 65 - got result '/' # Failed test 'got result '/'' # at t/Net-SSH2.t line 208. # got: undef # expected: '/' ok 66 - no more lines ok 67 # skip - public key infrastructure not present ok 68 # skip - public key infrastructure not present ok 69 # skip - public key infrastructure not present ok
Re: [OT] patch.exe on Vista is unusable.
- Original Message - From: Jan Dubois [EMAIL PROTECTED] To: 'Sisyphus' [EMAIL PROTECTED]; 'perl-win32-users' perl-win32-users@listserv.ActiveState.com Sent: Thursday, September 25, 2008 5:15 PM Subject: RE: [OT] patch.exe on Vista is unusable. . . Despite the fact that this is a great and wondrous innovation on the part of Microsoft (I bet Linux wish they'd thought of it first), I would like to remove this behaviour. Anyone know how to do that ? Did you try to create a patch.exe.manifest file in the same directory as patch.exe that request to run asInvoker? Just gave it a try now - but no luck. I get a pop-up telling me that The requested operation requires elevation. If this doesn't work, download the ACT (Application Compatibility Toolkit) from Microsoft and try to apply a runAsInvoker shim to the executable. There may also be a location in the registry to specify the requested execution level. I'll pursue that at some stage. For the moment I'll just rename 'patch.exe' to 'patsh.exe' - which works fine. When I first posted about this I didn't realize that a rename would work. I had tried renaming the file to 'my_patch.exe', but when the problem persisted I thought there must be more to it than a simple rename. It didn't occur to me at that time that the filename must !~ m/patch/i. I also tried out Jack's suggestion involving Run as administrator, but couldn't get anywhere with that either. Thanks Jack, Jan. Cheers, Rob ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs