Re: wget 1.17.x creates odd permissions on downloaded files

2016-06-23 Thread Zube
On Thu Jun 23 01:34:17 PM, Andrey Repin wrote:

> Greetings, Zube!

Thanks very much for taking the time to reply.

>  This is how Cygwin works around certain incompatibilities between
>  Windows and POSIX permission models.  Do NOT fall into a trap
>  and believe that Explorer trying to drag you to.  The permissions
>  are correct, it's just that Explorer is unable to deal with them,
>  because all it knows is so-called "canonical" order.

OK.

> If you want Windows behavior, use noacl flag on non-Cygwin mounts.

Thank you.  As you might have seen in my follow-up, it was simply
a change in behavior that I wasn't expecting.  Now that I expect
it, I can certainly set the execute bit on whatever executables
I download.

Cheers,
Zube

--
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: wget 1.17.x creates odd permissions on downloaded files

2016-06-22 Thread Zube
On Wed Jun 22 03:03:38 PM, Larry Hall (Cygwin) wrote:

> Remember, Cygwin's wget will not create a file with execute permissions
> automatically.  You have to do a "chmod +x putty.exe" if you want it to
> be recognized as an executable.

This was it, thanks.  It is /fairly/ new behavior, however.  Certainly
cygwin 2.3.1 installed in, if memory serves, Dec of 2015 did not need
the chmod to get putty to run.

Thanks also to Warren Young for taking the time to reply.  His comment
that "cygwin1.dll is becoming more POSIX-compliant in its permission
handling lately" seems to be right.  If I install ncftp under
cygwin and download putty.exe that way, it too gives the "Access is
denied." error.  So the changes are in cygwin, not wget.

Cheers,
Zube

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



wget 1.17.x creates odd permissions on downloaded files

2016-06-22 Thread Zube
wget 1.16.3 seemed to work fine for a simple task, that is to download
putty.exe from a local http site.  Start up a normal windows cmd.exe,
download, run, no muss, no fuss.

The last two wget versions (1.17.1-1 and -2) seem to exhibit the
following issues when putty.exe is downloaded.

1) putty will not execute.  Error is "Access is denied".

2) Examining the permissions on putty.exe, the first thing that
comes up is an error that reads:

"The permissions on putty.exe are incorrectly ordered, which may
cause some entries to be ineffective."

The permissions are odd.  When compared to a working machine (wget
1.16.3, cygwin 2.3.1) there is an additional group ("NULL SID") with
special access of type Deny and several of the other users and groups
have similar "type Deny" restrictions.

If I use a browser to download the file or a different version of wget
(e.g. https://eternallybored.org/misc/wget/) and drop putty.exe in
the same directory, there are no issues.  It also doesn't matter where
the file is dropped.  

This occurs on both a Windows 7 64-bit machine that has had
32-bit cygwin upgraded multiple times and on a new Windows 10
64-bit machine with 32-bit cygwin installed fresh.  It occurs
under cmd.exe and also under Cygwin.bat, for both administrators
and non-administrators.

Any help greatly appreciated.  Thank you for your time.

Cheers,
Zube

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