Re: Unexpected output from curl and wttr.in

2019-12-23 Thread Mike MacEachern
On 12/22/2019 6:21 AM, Marco Atzeri wrote:
> Am 22.12.2019 um 07:00 schrieb Brian Inglis:
>> On 2019-12-20 19:13, Marco Atzeri wrote:
>>> Am 20.12.2019 um 23:42 schrieb Mike MacEachern:
 On 12/20/2019 2:36 PM, Marco Atzeri wrote:
> Am 20.12.2019 um 17:29 schrieb Csaba Raduly:
>> On Thu, Dec 19, 2019 at 3:10 PM Mike MacEachern wrote:
>>
>> Useful path search diagnostic commands:
>>
>> $ which -a curl
>> alias curl='curl -sSL'
>>  /usr/bin/curl
>>  /proc/cygdrive/c/.../cygwin32/bin/curl
>>  /proc/cygdrive/c/WINDOWS/System32/curl
>> $ man -awW curl    # -W also shows .../man/cat#/ pages
>> /usr/man/man1/curl.1.gz
>> /proc/cygdrive/c/.../cygwin32/usr/share/man/man1/curl.1.gz
>> $ whereis curl
>> curl: /usr/bin/curl.exe /usr/include/curl
>> /proc/cygdrive/c/.../cygwin32/bin/curl.exe
>> /proc/cygdrive/c/WINDOWS/System32/curl.exe /usr/share/man/man1/curl.1.gz
>>
> 
> sure Mike,
> but none of these will work if you are biased
> to think that other problems are around
> 
> https://cygwin.com/acronyms/#PEBCAK
> 
> is the biggest ostacle to any debugging
> 
> Regards
> Marco
> 
> 
Huh?  I thought we solved this just by installing the Cygwin native
version of curl.  Nothing else required, by simply installing Cygwin's
own curl, the Windows version is automatically not used by default,
therefore no other work was required.


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



[ANNOUNCEMENT] Updated: mutt-1.13.2-1

2019-12-23 Thread Marco Atzeri

New version 1.3.2-1 of

  mutt

is available in the Cygwin distribution:

CHANGES
Last upstream bugfix update release.

Full details on:
https://gitlab.com/muttmua/mutt/raw/master/UPDATING

DESCRIPTION
The Mutt E-Mail Client
"All mail clients suck. This one just sucks less."

Mutt is a small but very powerful text-based mail client
for Unix operating systems.

HOMEPAGE
http://www.mutt.org/

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .

--
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: xman 1.1.5-1 immediately terminates with 'buffer overflow detected'

2019-12-23 Thread Ken

On 12/22/2019 5:23 PM, Ken wrote:

On 12/22/2019 12:44 AM, Brian Inglis wrote:

On 2019-12-21 17:44, Ken wrote:

Issue: xman 1.1.5-1 fails with 'buffer overflow detected'


WJFFM W10 1809, Cygwin 3.0.7, xorg-server 1.20.4, xman 1.1.5:




Here is a simplistic process to reproduce the xman failure.

Perform a fresh installation by running setup and select the following 
from 'Category' view:


Base: (default selections)
Utils:
    xman 1.1.5-1
X11:
    xorg-server 1.20.5-3
    xterm 348-1
    xwin-xdg-menu 20170312-1
    xinit 1.4.1-1

Click 'Next' to progress through setup.
Allow dependencies to auto-resolve and accept.
When prompted, select the Add icons to Desktop & Start Menu check boxes.

Once setup completes:
Launch the 'XWin Server' from the Windows start menu (Cygwin-X).
Then launch an xterm from the XDG Menu.

Launch 'xman' from the xterm session.

    $ xman
    *** buffer overflow detected ***: terminated

So, since it works for some, what packages are missing in this case?

Kind regards,
Ken


--
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: Files created with CYGWIN have "NULL SID:(DENY)" windows ACL, inter alia

2019-12-23 Thread Peter Binney
Hello Andrey - many thanks for that. I have now removed /etc/passwd
and /etc/group which didn't change anything.

I read some of your earlier posts on this and had already tried the noacl route.

Unfortunately it has made no difference. I added a second line to my
fstab so it read:

none /cygdrive cygdrive binary,posix=0,user 0 0
e: /cygdrive/e ntfs noacl,binary,posix=0,user,auto 0 0

with "mount" showing:

C:/cygwin/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin on / type ntfs (binary,auto)
E: on /cygdrive/e type ntfs (binary,noacl,posix=0,user)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
N: on /cygdrive/n type smbfs (binary,posix=0,user,noumount,auto)
P: on /cygdrive/p type smbfs (binary,posix=0,user,noumount,auto)

But when creating files on an E: I still get DENY for "NULL SID" and
other accounts.




On Sun, 22 Dec 2019 at 14:05, Andrey Repin  wrote:
>
> Greetings, Peter Binney!
>
> > Creating a file using "> newfile", "icacls newfile" shows various DENY 
> > settings:
>
> > newfile NULL SID:(DENY)(Rc,S,WEA,X,DC)
> > JCPR-DELL-3\peter:(R,W,D,WDAC,WO)
> > NT AUTHORITY\SYSTEM:(DENY)(S,X)
> > BUILTIN\Administrators:(DENY)(S,X)
> > BUILTIN\Users:(DENY)(S,X)
> > JCPR-DELL-3\None:(R)
> > NT AUTHORITY\SYSTEM:(RX,W)
> > BUILTIN\Administrators:(RX,W)
> > BUILTIN\Users:(RX,W)
> > Everyone:(R)
>
> > Whereas on a file created from Windows Explorer I see:
> > New Text Document.txt BUILTIN\Users:(I)(M)
> >   Everyone:(I)(RX)
> >   JCPR-DELL-3\peter:(I)(F)
> >   BUILTIN\Administrators:(I)(F)
> >   NT AUTHORITY\SYSTEM:(I)(F)
>
> > "mkpasswd" and "mkgroup"
>
> Please use getent
>
> > both show I (user "peter") have expected
> > entries in /etc/passwd and /etc/group (I attach both)
>
> Delete both from your system, they are not needed, except for extremely rare
> cases.
>
> > Running "whoami" commands from powershell shows:
>
> > PS E:\temp> whoami /groups
>
> > GROUP INFORMATION
> > -
> > Group NameType
> > SID  Attributes
> > =
> >  
> > ==
> > Everyone
> > Well-known group S-1-1-0  Mandatory group, Enabled by default,
> > Enabled group
> > NT AUTHORITY\Local account and member of Administrators group
> > Well-known group S-1-5-114Group used for deny only
> > BUILTIN\AdministratorsAlias
> > S-1-5-32-544 Group used for deny only
> > BUILTIN\Performance Log Users Alias
> > S-1-5-32-559 Mandatory group, Enabled by default, Enabled
> > group
> > BUILTIN\Users Alias
> > S-1-5-32-545 Mandatory group, Enabled by default, Enabled
> > group
> > NT AUTHORITY\INTERACTIVE
> > Well-known group S-1-5-4  Mandatory group, Enabled by default,
> > Enabled group
> > CONSOLE LOGON
> > Well-known group S-1-2-1  Mandatory group, Enabled by default,
> > Enabled group
> > NT AUTHORITY\Authenticated Users
> > Well-known group S-1-5-11 Mandatory group, Enabled by default,
> > Enabled group
> > NT AUTHORITY\This Organization
> > Well-known group S-1-5-15 Mandatory group, Enabled by default,
> > Enabled group
> > NT AUTHORITY\Local account
> > Well-known group S-1-5-113Mandatory group, Enabled by default,
> > Enabled group
> > LOCAL
> > Well-known group S-1-2-0  Mandatory group, Enabled by default,
> > Enabled group
> > NT AUTHORITY\NTLM Authentication
> > Well-known group S-1-5-64-10  Mandatory group, Enabled by default,
> > Enabled group
> > Mandatory Label\Medium Mandatory LevelLabel
> > S-1-16-8192
> > PS E:\temp> whoami
> > jcpr-dell-3\peter
> > PS E:\temp> whoami /user
>
> > USER INFORMATION
> > 
> > User Name SID
> > = =
> > jcpr-dell-3\peter S-1-5-21-1468824806-2062748802-729869357-100
>
> > I also attach cygcheck.out
>
> See my earlier message, I strongly suggest "noacl" mount option for
> directories outside Cygwin root.
> No windows program expects stupid access restrictions produces by basic POSIX
> permissions.
>
>
> --
> With best regards,
> Andrey Repin
> Sunday, December 22, 2019 15:35:08
>
> Sorry for my terrible english...
>

--
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: A permissions puzzle

2019-12-23 Thread Eliot Moss

On 12/23/2019 3:55 AM, Brian Inglis wrote:> On 2019-12-22 20:16, Eliot Moss 
wrote:
>>
>> So can a \\?\Volume{...} guid name for a volume be used in Cygwin's fstab?
>> What would the syntax be like for that?
>
> Each entry must be on a single line:
>
> #|/bin/cygwin1.dll
> # /etc/fstab - https://cygwin.com/cygwin-ug-net/using.html#mount-table
> #   dump   
dump
> # mixed pathfile   vfstype mntops  freq
passno
> #C:/cygwin64/  ntfsauto,binary 1   1
> #C:/cygwin64/bin /usr/bin  ntfsauto,binary 1   1
> #C:/cygwin64/lib /usr/lib  ntfsauto,binary 1   1
> #C: /cygdrive/cntfs
auto,binary,posix=0,noumount,   
>user1   1
> #none   /cygdrive  cygdriveauto,binary,posix=0,
>user0   0
> #none   /tmp   usertempbinary,posix=0  0   0
> //?/Volume{...} /media/namefat|ntfs
[no]acl*,binary*|text,bind,dos,
>[cyg|not]exec,ihash,override,
>posix=0|1*,sparse,[no]umount*,
>[no*]user   0   0
> #  defaults flagged *

Thank you, Brian.  I have tried this:

none /cygdrive cygdrive binary,posix=0,user 0 0
//?/Volume{13cb9114-4267-4a7b-8c14-2cbc4bbeecad} /media/backup ntfs 
noacl,binary,posix=0,user 0 0

The uid is what is shown in /proc/sys/GLOBAL??/Volume{...} and /media exists.

mount -a says:  mount: /media/backup: Invalid argument

I tried also creating an empty directory /media/backup, with the same result.

The drive sill mounts automatically on /cygdrive/d (as I would expect).

Thoughts?

Eliot

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



[ANNOUNCEMENT] Updated: guile-2.2.6-1

2019-12-23 Thread Marco Atzeri

Version 2.2.4-1  of

  guile
  libguile2.2-devel
  libguile2.2_1

have been uploaded for cygwin.

CHANGES
Latest upstream release.
https://www.gnu.org/software/guile/news/gnu-guile-226-released.html

DESCRIPTION
Guile is an implementation of the Scheme programming language,
supporting the Revised5 and most of the Revised6 language
reports, as well as many SRFIs.
Guile is designed to help programmers create flexible applications
that can be extended by users or other programmers with plug-ins,
modules, or scripts.

HOMEPAGE
https://www.gnu.org/software/guile/

Regards

Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .

--
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: A permissions puzzle

2019-12-23 Thread Brian Inglis
On 2019-12-22 20:16, Eliot Moss wrote:
> 
> So can a \\?\Volume{...} guid name for a volume be used in Cygwin's fstab?
> What would the syntax be like for that?

Each entry must be on a single line:

#|/bin/cygwin1.dll
# /etc/fstab - https://cygwin.com/cygwin-ug-net/using.html#mount-table
#   dumpdump
# mixed path file   vfstype mntops  freqpassno
#C:/cygwin64 /  ntfsauto,binary 1   1
#C:/cygwin64/bin /usr/bin   ntfsauto,binary 1   1
#C:/cygwin64/lib /usr/lib   ntfsauto,binary 1   1
#C:  /cygdrive/cntfsauto,binary,posix=0,noumount,   
user1   1
#none/cygdrive  cygdriveauto,binary,posix=0,
user0   0
#none/tmp   usertempbinary,posix=0  0   0
//?/Volume{...}  /media/namefat|ntfs[no]acl*,binary*|text,bind,dos,
[cyg|not]exec,ihash,override,
posix=0|1*,sparse,[no]umount*,
[no*]user   0   0
#   defaults flagged *

FYI:
$ head /etc/{fs,m}tab

Could also be a separate file under /etc/fstab.d/...

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

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