FIFO with group-only permissions fails with "Permission denied" ...

2024-09-09 Thread Roland Mainz via Cygwin
Hi! I'm trying to create a Cygwin FIFO which can only be read and written by admins: snip # as admin mkfifo system_cmd_fifo chgrp 544 system_cmd_fifo chmod a-rwx,g+rw system_cmd_fifo cat https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Potential Bug: Created files list owner/user exec until Windows reorders permissions

2024-05-23 Thread Ross Patterson via Cygwin
TL;DR: Weird permissions behavior in a Cygwin installation where permissions have been changed over time. I can't reproduce it on a clean install so that's how I'm working around it, but I thought it might be worth capturing what details I have in case it helps others or helps

Re: Wrong NTFS permissions

2024-01-24 Thread Andrey Repin via Cygwin
UNTING : FALSE >FILE_SUPPORTS_SPARSE_VDL : FALSE >FILE_DAX_VOLUME : FALSE >FILE_SUPPORTS_GHOSTING: FALSE > SectorInfoFlags: 0x03 >SSINFO_FLAGS_NO_SEEK_PENALTY : FALSE >SSINFO_FLAGS_TRIM_ENABLED : FALSE > By

Re: Wrong NTFS permissions

2024-01-24 Thread Vincent Rivière via Cygwin
way, I found a solution: setfacl -s u::rwx,g::r-x,o::r-x,d:u::rwx,d:g::r-x,d:o::r-x myfolder After that, permissions work as expected inside "myfolder" and new subfolders. Even on H:. But I'm not sure to understand why. I would have expected that a simple chmod on myfolder would ha

Re: Wrong NTFS permissions

2024-01-23 Thread Marco Atzeri via Cygwin
On 23/01/2024 22:54, Vincent Rivière via Cygwin wrote: Hi, I'm facing a really weird issue with NTFS permissions. $ umask 0022 $ cd /cygdrive/h/ what is H ? $ mkdir a $ ls -ld a drwxr-xr-x 1 vincent vincent 0 Jan 23 22:35 a # You can see that permissions are fine. $ getfacl a # fi

Wrong NTFS permissions

2024-01-23 Thread Vincent Rivière via Cygwin
Hi, I'm facing a really weird issue with NTFS permissions. $ umask 0022 $ cd /cygdrive/h/ $ mkdir a $ ls -ld a drwxr-xr-x 1 vincent vincent 0 Jan 23 22:35 a # You can see that permissions are fine. $ getfacl a # file: a # owner: vincent # group: vincent user::rwx group::r-x other

Re: [EXTERNAL] mkdir create directory with permissions in wrong order

2023-12-23 Thread Andrey Repin via Cygwin
Greetings, matth...@gmx.li! Please no top-posting in this list. > Am Freitag, dem 22.12.2023 um 22:11 + schrieb Lavrentiev, Anton > (NIH/NLM/NCBI) [C]: >> > Thanks for any hint >> >> https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files >> > How c

Re: [EXTERNAL] mkdir create directory with permissions in wrong order

2023-12-23 Thread Matthias--- via Cygwin
Thanks a lot, How can I set the permissions as promised? Thanks Matthias Am Freitag, dem 22.12.2023 um 22:11 + schrieb Lavrentiev, Anton (NIH/NLM/NCBI) [C]: > > Thanks for any hint > > https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files > > HTH, > > Anton Lav

RE: [EXTERNAL] mkdir create directory with permissions in wrong order

2023-12-22 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> Thanks for any hint https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-files HTH, Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe in

mkdir create directory with permissions in wrong order

2023-12-22 Thread Matthias--- via Cygwin
Hello I use "mkdir.exe /test" for creating a directory. If I open the properties in Windows it say "Permissions of /test are in wrong order" If I use "cmd /c mkdir /test" all is fine. I know that the mkdir.exe is the cygwin version and "cmd /c mkdir"

Re: Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a d

2023-08-28 Thread Joshuah Hurst via Cygwin
On Sun, Aug 27, 2023 at 2:35 PM Corinna Vinschen via Cygwin wrote: > > On Aug 26 19:44, Martin Wege via Cygwin wrote: > > On Fri, Aug 25, 2023 at 2:19 PM Corinna Vinschen via Cygwin > > wrote: > > > > > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > > > Note that Cygwin does not interpret

Re: Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a d

2023-08-28 Thread Corinna Vinschen via Cygwin
On Aug 28 07:35, Cedric Blancher via Cygwin wrote: > On Sun, 27 Aug 2023 at 14:35, Corinna Vinschen via Cygwin > wrote: > > As for FIFOs on NFS, as I wrote, they never worked as desired on NFS. > > For kicks I tried back until Cygwin 3.3. Given this isn't a regression, > > it won't be fixed for C

Re: Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a d

2023-08-27 Thread Cedric Blancher via Cygwin
On Sun, 27 Aug 2023 at 14:35, Corinna Vinschen via Cygwin wrote: > > On Aug 26 19:44, Martin Wege via Cygwin wrote: > > On Fri, Aug 25, 2023 at 2:19 PM Corinna Vinschen via Cygwin > > wrote: > > > > > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > > > Note that Cygwin does not interpret th

Re: Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a d

2023-08-27 Thread Corinna Vinschen via Cygwin
On Aug 26 19:44, Martin Wege via Cygwin wrote: > On Fri, Aug 25, 2023 at 2:19 PM Corinna Vinschen via Cygwin > wrote: > > > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > > Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, > > > instead it comes back as a symlink "myfifo.f

Re: Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a d

2023-08-26 Thread Brian Inglis via Cygwin
On 2023-08-26 11:44, Martin Wege via Cygwin wrote: On Fri, Aug 25, 2023 at 2:19 PM Corinna Vinschen via Cygwin wrote: On Aug 23 01:05, Roland Mainz via Cygwin wrote: Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, instead it comes back as a symlink "myfifo.fifo -> ':\0:c4:

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Brian Inglis via Cygwin
fsv3/ksh-1.0.4/arch/cygwin.i386-64/bin/mamake package: make with mamake package: make output captured in /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/lib/package/gen/make.out mkfifo: cannot set permissions of '/cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Martin Wege via Cygwin
On Thu, Aug 24, 2023 at 6:45 PM Martin Wege wrote: > > On Wed, Aug 23, 2023 at 1:06 AM Roland Mainz via Cygwin > wrote: > > > > On Tue, Aug 22, 2023 at 4:52 PM Lavrentiev, Anton (NIH/NLM/NCBI) [C] > > via Cygwin wrote: > > > > FIFOs which don't make *any* sense > > > > ... FWIW, a remote NFS fil

Documenting Cygwin on NFS, no longer only exchange-medium! Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a direc

2023-08-26 Thread Martin Wege via Cygwin
On Fri, Aug 25, 2023 at 2:19 PM Corinna Vinschen via Cygwin wrote: > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, > > instead it comes back as a symlink "myfifo.fifo -> ':\0:c4:1000'". > > > > AFAIK there are (at least) t

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Martin Wege via Cygwin
tdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64 view package: update /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/lib/probe/C/make/probe package: update /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/bin/mamake package: make with mam

RE: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> You don't seem to understand the problem. I think I do, and that aligns with your explanation how Cygwin machinery works to fake the FIFOs. > If I can recognize a file as FIFO, I can use it as FIFO, regardless if it's a > native FIFO or a Cygwin FIFO. That's exactly what I meant! > Show m

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Corinna Vinschen via Cygwin
On Aug 25 23:21, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > it is not possible to diffentiate between Cygwin > > FIFOs and real FIFOs created from the remote side in `ls -l' > > output. > > Why would that be necessary? If it's a FIFO, it can be used as a > FIFO, regardless where a

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Corinna Vinschen via Cygwin
On Aug 26 13:26, Cedric Blancher via Cygwin wrote: > On Fri, 25 Aug 2023 at 14:26, Corinna Vinschen via Cygwin > wrote: > > > > On Aug 25 14:18, Corinna Vinschen via Cygwin wrote: > > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > > > 2. Check whether the filesystem for the fifos path is NF

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Cedric Blancher via Cygwin
On Fri, 25 Aug 2023 at 17:15, Roland Mainz via Cygwin wrote: > > On Fri, Aug 25, 2023 at 2:18 PM Corinna Vinschen via Cygwin > wrote: > > > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > > Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, > > > instead it comes back as a

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-26 Thread Cedric Blancher via Cygwin
On Fri, 25 Aug 2023 at 14:26, Corinna Vinschen via Cygwin wrote: > > On Aug 25 14:18, Corinna Vinschen via Cygwin wrote: > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > > 2. Check whether the filesystem for the fifos path is NFS > > > (cgywin.dll's |fs.fs_is_nfs()|), and then just refuse |

RE: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-25 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> it is not possible to diffentiate between Cygwin > FIFOs and real FIFOs created from the remote side in `ls -l' > output. Why would that be necessary? If it's a FIFO, it can be used as a FIFO, regardless where and how it was created.. Anton Lavrentiev Contractor NIH/NLM/NCBI -- Problem rep

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-25 Thread Roland Mainz via Cygwin
n [3] as *prototype*, so |mknod()| will properly work in a portable manner 5. We ask Microsoft to review the private API created in [3], and ask them to implement it for the Microsoft NFSv3 client too (because we have a precedent with [4]!) Optional: 6. Cygwin: Like [1] add "afs_emulate_dev_special_files_as_symlink" to do

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-25 Thread Corinna Vinschen via Cygwin
On Aug 25 14:18, Corinna Vinschen via Cygwin wrote: > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > 2. Check whether the filesystem for the fifos path is NFS > > (cgywin.dll's |fs.fs_is_nfs()|), and then just refuse |mkfifo()| with > > |ENOSYS| (not implemented) > > I like the idea. EPERM,

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-25 Thread Corinna Vinschen via Cygwin
On Aug 23 01:05, Roland Mainz via Cygwin wrote: > Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, > instead it comes back as a symlink "myfifo.fifo -> ':\0:c4:1000'". > > AFAIK there are (at least) these two options to fix the problems: > 1. Check whether the filesystem for the

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-25 Thread Corinna Vinschen via Cygwin
On Aug 24 18:24, Martin Wege via Cygwin wrote: > On Sat, Aug 19, 2023 at 10:15 AM ASSI via Cygwin wrote: > > > > Martin Wege via Cygwin writes: > > > How can I find out whether the current Cygwin terminal has > > > Administrator rights? I want to safeguard our admin scripts with a > > > simple tes

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-24 Thread Cedric Blancher via Cygwin
On Thu, 24 Aug 2023 at 18:45, Martin Wege via Cygwin wrote: > > On Wed, Aug 23, 2023 at 1:06 AM Roland Mainz via Cygwin > wrote: > > > > On Tue, Aug 22, 2023 at 4:52 PM Lavrentiev, Anton (NIH/NLM/NCBI) [C] > > via Cygwin wrote: > > > > FIFOs which don't make *any* sense > > > > ... FWIW, a remot

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Bill Stewart via Cygwin
at the process is a member of the > Administrators group, the group isn't enabled, so the process isn't > actually running with administrative permissions. In Windows-speak we would > say the process isn't "elevated" ("elevated" = "running with admin

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-24 Thread Martin Wege via Cygwin
On Wed, Aug 23, 2023 at 1:06 AM Roland Mainz via Cygwin wrote: > > On Tue, Aug 22, 2023 at 4:52 PM Lavrentiev, Anton (NIH/NLM/NCBI) [C] > via Cygwin wrote: > > > FIFOs which don't make *any* sense > > > ... FWIW, a remote NFS fileystem. > > > > I got an impression that the OP is trying to deploy

Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-24 Thread Martin Wege via Cygwin
On Wed, Aug 23, 2023 at 5:44 PM Jeffrey Altman via Cygwin wrote: > > On 8/22/2023 10:52 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin > wrote: > >> FIFOs which don't make *any* sense > >> ... FWIW, a remote NFS fileystem. > > I got an impression that the OP is trying to deploy something (may

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Martin Wege via Cygwin
On Sat, Aug 19, 2023 at 10:15 AM ASSI via Cygwin wrote: > > Martin Wege via Cygwin writes: > > How can I find out whether the current Cygwin terminal has > > Administrator rights? I want to safeguard our admin scripts with a > > simple test and bail out with an error if someone wants to do admin >

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Bill Stewart via Cygwin
er of Administrators): PS C:\> whoami /groups /fo csv | ConvertFrom-Csv | Where-Object { $_.SID -eq "S-1-5-32-544" } That is, while it is true that the process is a member of the Administrators group, the group isn't enabled, so the process isn't actually running with administ

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-24 Thread Andrew Schulman via Cygwin
> Hello, > > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin privileges. https://superuser.com/questions/66019

Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-23 Thread Cedric Blancher via Cygwin
On Wed, 23 Aug 2023 at 17:44, Jeffrey Altman via Cygwin wrote: > > On 8/22/2023 10:52 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin > wrote: > >> FIFOs which don't make *any* sense > >> ... FWIW, a remote NFS fileystem. > > I got an impression that the OP is trying to deploy something (maybe

RE: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-23 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> What happens when the user executes two copies of an > application /*such as PyCharm*/ on two separate machines sharing the same > home directory? Does the directory entry and inode get reused on startup > and/or deleted on exit? How does that impact the process instance on the > other machin

Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-23 Thread Jeffrey Altman via Cygwin
On 8/22/2023 10:52 AM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: FIFOs which don't make *any* sense ... FWIW, a remote NFS fileystem. I got an impression that the OP is trying to deploy something (maybe the entire Cygwin) onto an NFS share. So the named FIFO "file" is also created

How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-22 Thread Roland Mainz via Cygwin
On Tue, Aug 22, 2023 at 4:52 PM Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > FIFOs which don't make *any* sense > > ... FWIW, a remote NFS fileystem. > > I got an impression that the OP is trying to deploy something (maybe the > entire Cygwin) onto an > NFS share. So the named FIFO

RE: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-22 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> FIFOs which don't make *any* sense > ... FWIW, a remote NFS fileystem. I got an impression that the OP is trying to deploy something (maybe the entire Cygwin) onto an NFS share. So the named FIFO "file" is also created in there. It's pointless to assume that the FIFO can be used as a communic

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-21 Thread Martin Wege via Cygwin
gt; > > > > /usr/bin/mkfifo -m 600 x.fifo > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > > > > > Is there a known workaround? So far named fifos cannot be created somehow. > > > > This is fixed for NTFS, but s

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-21 Thread Corinna Vinschen via Cygwin
t; > > > > Hello, > > > > > > > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > > > > > /usr/bin/mkfifo -m 600 x.fifo > > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > > > > &

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-20 Thread Cedric Blancher via Cygwin
NTFS: > > > > > > /usr/bin/mkfifo -m 600 x.fifo > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > > > > > Is there a known workaround? So far named fifos cannot be created somehow. > > > > This is fixed for NTFS, b

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-19 Thread Bill Stewart via Cygwin
On Sat, Aug 19, 2023 at 2:15 AM ASSI wrote: Windows really doesn't have a defined notion of what is or is not an > "administrator". Each particular definition will be insufficient or > invalid in certain contexts. > There is a definition of administrator in Windows: Your account is a member, eit

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-19 Thread ASSI via Cygwin
Martin Wege via Cygwin writes: > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin privileges. Windows really doe

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Doug Henderson via Cygwin
t;; fi } I imagine any other Windows app that needs admin permissions would work. I use this to change the color of the prompt ($PS1) for the admin user to red. HTH Doug -- Doug Henderson, Calgary, Alberta, Canada - from gmail.com -- Problem reports: https://cygwin.com/problems.html FAQ:

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-18 Thread Martin Wege via Cygwin
gt; > > > > /usr/bin/mkfifo -m 600 x.fifo > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > > > > > Is there a known workaround? So far named fifos cannot be created somehow. > > > > This is fixed for NTFS, but s

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Mark Geisert via Cygwin
Mark Geisert via Cygwin wrote: Backwoods BC via Cygwin wrote: [...] I don't know if this is the official method, but it works for me: # Shell Options # Elevated privilege windows have $SESSIONNAME set if [ "$SESSIONNAME" == "" ] ;then    printf -v adminPmt '[\u2022Admin\u2022] ' else    ex

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-18 Thread Mark Geisert via Cygwin
Backwoods BC via Cygwin wrote: On Thu, Aug 17, 2023 at 7:01 PM Martin Wege via Cygwin wrote: How can I find out whether the current Cygwin terminal has Administrator rights? I want to safeguard our admin scripts with a simple test and bail out with an error if someone wants to do admin stuff (s

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-18 Thread Corinna Vinschen via Cygwin
On Aug 18 06:02, Martin Wege via Cygwin wrote: > On Mon, Aug 7, 2023 at 4:42 PM Martin Wege wrote: > > > > Hello, > > > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > /usr/bin/mkfifo -m 600 x.fifo > > mkfifo: cannot set permissions of '

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-17 Thread Martin Wege via Cygwin
On Mon, Aug 7, 2023 at 4:42 PM Martin Wege wrote: > > Hello, > > We get a weird mkfifo failure in Cygwin on NTFS: > > /usr/bin/mkfifo -m 600 x.fifo > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > Is there a known workaround? So far named fifo

Re: Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-17 Thread Backwoods BC via Cygwin
On Thu, Aug 17, 2023 at 7:01 PM Martin Wege via Cygwin wrote: > How can I find out whether the current Cygwin terminal has > Administrator rights? I want to safeguard our admin scripts with a > simple test and bail out with an error if someone wants to do admin > stuff (say: regtool) without admin

Test for Windows Administrator permissions from Cygwin terminal|script?

2023-08-17 Thread Martin Wege via Cygwin
Hello, How can I find out whether the current Cygwin terminal has Administrator rights? I want to safeguard our admin scripts with a simple test and bail out with an error if someone wants to do admin stuff (say: regtool) without admin privileges. Thanks, Martin -- Problem reports: https:/

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-10 Thread Martin Wege via Cygwin
On Wed, Aug 9, 2023 at 11:56 AM Corinna Vinschen wrote: > > On Aug 9 11:12, Martin Wege via Cygwin wrote: > > On Wed, Aug 9, 2023 at 10:01 AM Corinna Vinschen > > wrote: > > > > > > On Aug 8 21:38, Martin Wege via Cygwin wrote: > > > > On Tue, Aug 8, 2023 at 10:20 AM Corinna Vinschen > > > > w

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-09 Thread Corinna Vinschen via Cygwin
On Aug 9 11:12, Martin Wege via Cygwin wrote: > On Wed, Aug 9, 2023 at 10:01 AM Corinna Vinschen > wrote: > > > > On Aug 8 21:38, Martin Wege via Cygwin wrote: > > > On Tue, Aug 8, 2023 at 10:20 AM Corinna Vinschen > > > wrote: > > > > > > > > On Aug 7 23:14, Martin Wege via Cygwin wrote: > >

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-09 Thread Martin Wege via Cygwin
eird mkfifo failure in Cygwin on NTFS: > > > > > > > > > > > > > > /usr/bin/mkfifo -m 600 x.fifo > > > > > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > > > > > > > > > > > This e

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-09 Thread Corinna Vinschen via Cygwin
gt; > > On Aug 7 12:26, Brian Inglis via Cygwin wrote: > > > > > On 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > > > > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > > > > > > > > > /usr/bin/mkfifo -m 600 x

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-08 Thread Martin Wege via Cygwin
n 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > > > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > > > > > > > /usr/bin/mkfifo -m 600 x.fifo > > > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > &g

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-08 Thread Corinna Vinschen via Cygwin
in Cygwin on NTFS: > > > > > > > > /usr/bin/mkfifo -m 600 x.fifo > > > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > > > > > This error is also reproducible with default fifo permissions 666 or > > &

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Martin Wege via Cygwin
On Mon, Aug 7, 2023 at 9:14 PM Corinna Vinschen wrote: > > On Aug 7 12:26, Brian Inglis via Cygwin wrote: > > On 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > > > /usr/bin/mkfifo -m 600 x.fi

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Corinna Vinschen via Cygwin
On Aug 7 12:26, Brian Inglis via Cygwin wrote: > On 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > /usr/bin/mkfifo -m 600 x.fifo > > mkfifo: cannot set permissions of 'x.fifo': Not a directory >

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Brian Inglis via Cygwin
On 2023-08-07 08:42, Martin Wege via Cygwin wrote: We get a weird mkfifo failure in Cygwin on NTFS: /usr/bin/mkfifo -m 600 x.fifo mkfifo: cannot set permissions of 'x.fifo': Not a directory This error is also reproducible with default fifo permissions 666 or anything else, and app

mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Martin Wege via Cygwin
Hello, We get a weird mkfifo failure in Cygwin on NTFS: /usr/bin/mkfifo -m 600 x.fifo mkfifo: cannot set permissions of 'x.fifo': Not a directory Is there a known workaround? So far named fifos cannot be created somehow. Thanks, Martin -- Problem reports: https://

Re: Permissions question / issue

2023-04-14 Thread Corinna Vinschen via Cygwin
On Apr 14 15:49, Eliot Moss via Cygwin wrote: > At present I have: > > $ getfacl id_rsa2 > # file: id_rsa2 > # owner: moss > # group: moss > user::rw- > group::--- > group:SYSTEM:r--#effective:--- > mask::--- > other::--- > > $ icacls id_rsa2 > id_rsa2 NULL SID:(DENY)(Rc,DC) > ELI

Re: Permissions question / issue

2023-04-14 Thread Corinna Vinschen via Cygwin
On Apr 14 15:43, Eliot Moss via Cygwin wrote: > On 4/14/2023 3:11 PM, Corinna Vinschen via Cygwin wrote: > > On Apr 13 23:03, Eliot Moss via Cygwin wrote: > > > Dear cygwin'ers - > > > > > > I seem to be caught in a bind with the Cygwin permissions se

Re: Permissions question / issue

2023-04-14 Thread Eliot Moss via Cygwin
On 4/14/2023 3:43 PM, Eliot Moss via Cygwin wrote: On 4/14/2023 3:11 PM, Corinna Vinschen via Cygwin wrote: On Apr 13 23:03, Eliot Moss via Cygwin wrote: Dear cygwin'ers - I seem to be caught in a bind with the Cygwin permissions setup. ssh insists that ~/.ssh/config have permissions no

Re: Permissions question / issue

2023-04-14 Thread Eliot Moss via Cygwin
On 4/14/2023 3:11 PM, Corinna Vinschen via Cygwin wrote: On Apr 13 23:03, Eliot Moss via Cygwin wrote: Dear cygwin'ers - I seem to be caught in a bind with the Cygwin permissions setup. ssh insists that ~/.ssh/config have permissions no less permissive than rw--- (600). Huh? N

Re: Permissions question / issue

2023-04-14 Thread Corinna Vinschen via Cygwin
On Apr 13 23:03, Eliot Moss via Cygwin wrote: > Dear cygwin'ers - > > I seem to be caught in a bind with the Cygwin permissions setup. > > ssh insists that ~/.ssh/config have permissions no less permissive than > rw--- (600). Huh? No, it doesn't, usually. My f

Re: Permissions question / issue

2023-04-14 Thread Eliot Moss via Cygwin
On 4/13/2023 11:03 PM, Eliot Moss via Cygwin wrote: Dear cygwin'ers - I seem to be caught in a bind with the Cygwin permissions setup. ssh insists that ~/.ssh/config have permissions no less permissive than rw--- (600). ---> should have read no *more* permissive (sent too late

Permissions question / issue

2023-04-13 Thread Eliot Moss via Cygwin
Dear cygwin'ers - I seem to be caught in a bind with the Cygwin permissions setup. ssh insists that ~/.ssh/config have permissions no less permissive than rw--- (600). However, my backup program runs as SYSTEM and needs access. I tried to provide that access by adding an ACL g:SYSTE

Unexpected permissions for home dir install

2022-08-31 Thread carbonfiber123irc carbonfiber123irc
I did read that upon installation. But I read it more as: "Cygwin is still available to multiple users, depending on where you install it". I did not expect it to apply when installing Cygwin into a private home directory. And maybe other people read it similar to how I read it. But its also en

Re: Unexpected permissions for home dir install

2022-08-31 Thread Ken Brown
"C:\Users\user1\Downloads\cygwin_test1\" Then all the directories and files have the read and execute permissions for the "Everyone" SID. This means a user2 on the same system can read files inside "C:\Users\user1\Downloads\cygwin_test1\home\user1\" It also mean

Unexpected permissions for home dir install

2022-08-31 Thread carbonfiber123irc carbonfiber123irc
irectories and files have the read and execute permissions for the "Everyone" SID. This means a user2 on the same system can read files inside "C:\Users\user1\Downloads\cygwin_test1\home\user1\" It also means that user2 can use stuff in the cygwin install such as bash, eve

RE: Weird issue with file permissions

2022-07-02 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
mask(0).] On Cygwin, however, I have to resort to good old chmod(). > Which is not necessarily related to the permissions on the file. Windows > socket is an in-memory object, the file is used merely for naming purposes. Sockets are in-memory objects everywhere. The UNIX socket file is a j

Re: [EXTERNAL] Re: Weird issue with file permissions

2022-07-02 Thread Andrey Repin
Greetings, Lavrentiev, Anton (NIH/NLM/NCBI) [C]! >> what your test program was actually doing. But you seem to be assuming that >> calling fchmod on a socket descriptor should affect the permissions on the >> socket file (assuming the socket is bound). Is that documented an

Re: [EXTERNAL] Re: Weird issue with file permissions

2022-07-02 Thread Ken Brown
On 7/2/2022 3:37 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: what your test program was actually doing. But you seem to be assuming that calling fchmod on a socket descriptor should affect the permissions on the socket file (assuming the socket is bound). Is that documented anywhere

RE: [EXTERNAL] Re: Weird issue with file permissions

2022-07-02 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> what your test program was actually doing. But you seem to be assuming that > calling fchmod on a socket descriptor should affect the permissions on the > socket file (assuming the socket is bound). Is that documented anywhere? > POSIX > says that the behavior of fch

Re: Weird issue with file permissions

2022-07-02 Thread Ken Brown
ine! Which is why I call fchmod() to fix the permissions up, and THAT does not work. BTW, should I have called chmod() instead (which is what the command line chmod does), the permissions would have been set correctly on the socket file, but fchmod() would have misreported them again (this time lo

RE: Weird issue with file permissions

2022-07-02 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
I forgot to mention that my "umask" is the standard 022... The man page says that for directories with the ACLs, it is ignored. So in my code bind() wouldn't have created the socket with 0777, and that's fine! Which is why I call fchmod() to fix the permissions up, and THAT

Re: Weird issue with file permissions

2022-07-02 Thread Ken Brown
On 7/1/2022 11:23 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: That way I'm sure I won't have any surprises with permissions when working in /cygdrive/g/cygwin. Do you want to try that and see if it makes a difference? I have no problems with /cygdrive/g/cygwin -- my socket

RE: Weird issue with file permissions

2022-07-01 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
> That way I'm sure I won't have any surprises with permissions when working in > /cygdrive/g/cygwin. Do you want to try that and see if it makes a difference? I have no problems with /cygdrive/g/cygwin -- my socket file gets created there with proper permissions and report

Re: Weird issue with file permissions

2022-07-01 Thread Ken Brown
new). So it was something like: $ mkdir /cygdrive/g/cygwin At this point the permissions on /cygdrive/g/cygwin are influenced by the ACL on /cygdrive/g. What I would typically do in this situation is getfacl ~ | setfacl -f - /cygdrive/g/cygwin That way I'm sure I won't have any su

RE: Weird issue with file permissions

2022-07-01 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
en for each $stuffdir I wanted moved $ cd; tar cf - ./$stuffdir | (cd /cygdrive/g/cygwin; tar xvf -) So, I have no idea why permissions there ended up all perplexed. But please note that .socket gets created perfectly fine in that directory, yet the problem occurs when that's a subdirectory, cr

Re: Weird issue with file permissions

2022-07-01 Thread Ken Brown
On 7/1/2022 2:00 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: Lastly, I forgot to list all the involved directories as they look from under Cygwin with their permissions, if that's of any help: $ ls -ld ~ ~/.socket ~/subdir ~/subdir/.socket drwx--+ 1 ANTON None 0 Jul 1 13:36

Re: Weird issue with file permissions

2022-07-01 Thread Ken Brown
On 7/1/2022 2:00 PM, Lavrentiev, Anton (NIH/NLM/NCBI) [C] wrote: getfacl does not work even for the .socket "file" in my home directory for which ~/sun works perfectly fine with permissions (and all subdirectories crated with mkdir under it). Also like I said, ~/sun also works perf

RE: Weird issue with file permissions

2022-07-01 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
getfacl does not work even for the .socket "file" in my home directory for which ~/sun works perfectly fine with permissions (and all subdirectories crated with mkdir under it). Also like I said, ~/sun also works perfectly fine in /cygdrive/g/cygwin/ but not if I created a subdirector

Re: Weird issue with file permissions

2022-07-01 Thread Ken Brown
ive/g? The failure of getfacl suggests that Cygwin thinks the drive doesn't support ACLs, in which case it might just be faking permissions (lying). Ken -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https:

Weird issue with file permissions

2022-06-30 Thread Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin
Hi all, I am having an issue with socket file permissions... So here's a mockup of code that shows the problem: $ cat sun.c #include #include #include #include #include #include #include #define SOCKET "./.socket" int main() { struct sockaddr_un addr;

Re: Permissions issues after installing Windows 10

2022-06-03 Thread Bill Stewart
On Fri, Jun 3, 2022 at 6:23 AM Brent Epp wrote: I would think so too, but that doesn't appear to be happening. If it > makes a difference, the SID actually starts with S-1-5-21. I have to > manually take ownership in order to even access the files at all. > Explained another way: According to htt

Re: Permissions issues after installing Windows 10

2022-06-03 Thread Achim Gratz
Brent Epp writes: > This is essentially what happened (removable disk moved from one > computer to another). The server resource kit from M$ used to have a tool called SubInACL that addresses exactly this situation (among other things). You give it a set of old/new SID pairs and it will replace t

Re: Permissions issues after installing Windows 10

2022-06-03 Thread Brent Epp
ble and I can't even take ownership or change the permissions. I have to either restore them from a backup or boot to a Linux environment to access them. Windows displays "Account Unknown" (with a SID) in the ACL when it can't resolve the SID reference. There can be a number o

Re: Permissions issues after installing Windows 10

2022-06-02 Thread Bill Stewart
take > ownership or change the permissions. I have to either restore them from > a backup or boot to a Linux environment to access them. > Windows displays "Account Unknown" (with a SID) in the ACL when it can't resolve the SID reference. There can be a number of reasons for this

Re: Permissions issues after installing Windows 10

2022-06-02 Thread Brent Epp
I'm getting all sorts of permissions issues with cygwin.  I did run the cygwin setup again to reinstall/upgrade. First, I had restore my cygwin home directory from a backup, since it was giving me permissions errors on .bash_history, .ssh, etc, but the biggest headache is with git repos.  Firs

Re: Permissions issues after installing Windows 10

2022-05-08 Thread Andrey Repin
Greetings, Brent Epp! > I recently (finally) installed Windows 10 on my system (clean install).  > All of my files are stored in on a secondary drive/partition, on which > cygwin is also installed.  I expected to be able to just pick up where I > left off, but I'm getting all sor

Permissions issues after installing Windows 10

2022-05-07 Thread Brent Epp
I recently (finally) installed Windows 10 on my system (clean install).  All of my files are stored in on a secondary drive/partition, on which cygwin is also installed.  I expected to be able to just pick up where I left off, but I'm getting all sorts of permissions issues with cygwin. 

Re: Permissions on Files Created with Cygwin

2022-02-10 Thread Brian Inglis
On 2022-02-10 09:48, Rob Stevens wrote: Whenever I create files with cygwin (using whatever utilitity or editor) I get these permissions as reported by icacls:   NULL SID:(DENY)(Rc,S,X,DC)   MALIN\rob:(R,W,D,WDAC,WO)   NT AUTHORITY\SYSTEM:(DENY)(S,X)   BUILTIN\Administrators:(DENY)(S,X

Re: Permissions on Files Created with Cygwin

2022-02-10 Thread Marco Atzeri
On 10.02.2022 17:48, Rob Stevens wrote: Whenever I create files with cygwin (using whatever utilitity or editor) I get these permissions as reported by icacls:   NULL SID:(DENY)(Rc,S,X,DC)   MALIN\rob:(R,W,D,WDAC,WO)   NT AUTHORITY\SYSTEM:(DENY)(S,X)   BUILTIN\Administrators:(DENY)(S,X

Permissions on Files Created with Cygwin

2022-02-10 Thread Rob Stevens
Whenever I create files with cygwin (using whatever utilitity or editor) I get these permissions as reported by icacls:   NULL SID:(DENY)(Rc,S,X,DC)   MALIN\rob:(R,W,D,WDAC,WO)   NT AUTHORITY\SYSTEM:(DENY)(S,X)   BUILTIN\Administrators:(DENY)(S,X)   MALIN\None:(R)   NT AUTHORITY\SYSTEM:(RX,W

Re: Duplicate ACLs? - Can't copy file even with Admin permissions

2022-01-25 Thread cygwin
956008885-3418522649-1831038044-1853292631-2271478464)(A;ID;FA;;;SY)(A;OICIIOID;GA;;;SY)(A;ID;FA;;;BA)(A;OICIIOID;GA;;;BA)(A;ID;0x1200a9;;;BU)(A;OICIIOID;GXGR;;;BU)(A;OICIIOID;GA;;;CO) > > > > - > > Any thoughts on what might be wrong here? > > Again, the pe

  1   2   3   4   5   6   7   8   9   10   >