Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group

2024-05-31 Thread Bill Stewart via Cygwin
On Thu, May 30, 2024 at 5:21 PM Dan Shelton wrote: How can someone run explorer as Admin then? > I believe the point of the design was to prevent exactly that (as already noted, for security reasons). Bill -- Problem reports: https://cygwin.com/problems.html FAQ:

Re: Run explorer.exe with Cygwin newgrp(1) - same user but different primary group

2024-05-29 Thread Bill Stewart via Cygwin
On Tue, May 28, 2024 at 9:36 PM Dan Shelton wrote: > Does anyone know how to run Windows explorer.exe with Cygwin > /bin/newgrp, so all new files created by explorer.exe use that new > primary group, and all programs launched by explorer.exe use that same > primary group? > As I understand it,

Re: WinSG Re: [Ms-nfs41-client-devel] ANN: NFSv4.1 filesystem client Windows driver binaries for Windows 10/11 for testing, 2024-05-28 ...

2024-05-29 Thread Bill Stewart via Cygwin
On Tue, May 28, 2024 at 8:29 PM Dan Shelton wrote: Just a couple of ideas: > - Native Windows doesn't have an easy way to list group memberships > for the current user, so a WinSG -l to list available groups would be > good > Maybe you weren't aware of it - 'whoami /groups' > - WinSG should be

Re: Installing Cygwin as normal user in nonstandard location?

2024-05-25 Thread Bill Stewart via Cygwin
On Sat, May 25, 2024 at 3:54 PM Martin Wege wrote: Can Cygwin be installed as a normal user (without Admin rights) in a > nonstandard location, like C.\Users\martinwege\cygwinroot36\...)? > > Also, can this be done for more than one Cygwin version, e.g. I'd like > to test multiple Cygwin versions

Re: DOS namespaces, accessible/walk-able as Admin via Cygwin?

2024-04-21 Thread Bill Stewart via Cygwin
On Sun, Apr 21, 2024 at 5:25 PM Dan Shelton wrote: On Sat, 20 Apr 2024 at 05:37, Brian Inglis via Cygwin > wrote: > > Under MS Windows you can use Sysinternals WinObj64 to browse the > hierarchy and > > objects. > > What is that? > Perhaps search for "winobj64" ?

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-20 Thread Bill Stewart via Cygwin
On Wed, Mar 20, 2024 at 5:40 AM Christian Franke wrote: Corinna Vinschen via Cygwin wrote: > > > For Cygwin apps, this occured when you built, say, an executable under > > Windows 8.1 before Windows 10 support was added to the Cygwin toolchain: > > the manifest linked to the Cygwin executable

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-19 Thread Bill Stewart via Cygwin
On Tue, Mar 19, 2024 at 10:21 AM Corinna Vinschen wrote: On Mar 19 09:18, Bill Stewart via Cygwin wrote: > > > I'm not sure of the exact scenario that led to the "RtlGetVersion is > > subject to manifesting" conclusion, but I can't reproduce it. > > Yo

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-19 Thread Bill Stewart via Cygwin
On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin > wrote: > > > Can you please clarify the circumstances under which the RtlGetVersion > > function "may not return the correct values"? > > "

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-19 Thread Bill Stewart via Cygwin
On Tue, Mar 19, 2024 at 4:21 AM Christian Franke wrote: Cygwin uses the undocumented RtlGetNtVersionNumbers() from ntdll.dll > because even RtlGetVersion() may not return the correct values. See > function wincapc::init() > >

Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-29 Thread Bill Stewart via Cygwin
On Thu, Feb 29, 2024 at 7:50 AM Andrey Repin wrote: > (I ask because PowerShell has been a built-in part of the Windows since > > Windows 7--that's over 14 years ago as I write this.) > > Since Windows XP. > You must not be remembering correctly. PowerShell wasn't a built-in part of Windows

Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-27 Thread Bill Stewart via Cygwin
On Tue, Feb 27, 2024 at 7:42 AM Cedric Blancher wrote: How can I get the group SID for a file in cmd.exe (powershell is not an > option)? > Why is PowerShell not an option? (I ask because PowerShell has been a built-in part of the Windows since Windows 7--that's over 14 years ago as I write

Re: Automatic Cygwin installation for CI ?

2023-12-15 Thread Bill Stewart via Cygwin
On Fri, Dec 15, 2023 at 10:07 AM Mainz, Roland wrote: Is there any documentation how Cygwin 3.5.0 can be automatically (without > GUI and user intervention, e.g. via *.bat script) be installed as part of a > CI (Continuous integration) build environment ? > Have you looked at cygwin.com? --

Re: cmd.exe clone with UNC support?

2023-11-30 Thread Bill Stewart via Cygwin
On Wed, Nov 29, 2023 at 9:51 PM Martin Wege via Cygwin wrote: Is there a cmd.exe clone for Windows which supports UNC paths? > No, and this is because cmd.exe already supports UNC paths. I have been using UNC paths in cmd.exe for many years. It might help to describe your problem rather than a

Re: Capturing a Cygwin instance from another PC

2023-11-22 Thread Bill Stewart via Cygwin
On Wed, Nov 22, 2023 at 7:53 AM Jose Isaias Cabrera wrote: I have a new Win11 PC, and I wanted to capture the same Cygwin setup that I > have in another Win10 PC. I copied the C:\cygwin64 folder from the Win10 pc > to the Win11 pc, then I downloaded a fresh setup-x86_64.exe from > cygwin.com to

Re: Fork errors

2023-09-07 Thread Bill Stewart via Cygwin
On Wed, Sep 6, 2023 at 5:32 PM Mark Geisert wrote: Speculation: The specific exit code 0xC142 may or may not have > something to do > with Windows error 142, which is ERROR_BUSY_DRIVE. I cannot help further > on this. > Correction: The low word of 0xC142 = hex 142 = decimal 322 =

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

2023-08-24 Thread Bill Stewart via Cygwin
On Thu, Aug 24, 2023 at 8:52 AM Bill Stewart wrote: On Thu, Aug 24, 2023 at 7:01 AM Andrew Schulman 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

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

2023-08-24 Thread Bill Stewart via Cygwin
On Thu, Aug 24, 2023 at 7:01 AM Andrew Schulman 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

Re: Virus Total scan

2023-08-22 Thread Bill Stewart via Cygwin
On Tue, Aug 22, 2023 at 9:00 AM Thomas Schweikle wrote: It is the address of one of the distribution servers. Since this is not > "one server", but a cluster of servers, your "suspicious" server shows > only one thing: those "suspicious" flags are suspicious by themselves: > > this particular

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,

Re: fnmatch improvements

2023-07-28 Thread Bill Stewart via Cygwin
On Fri, Jul 28, 2023 at 5:12 AM Corinna Vinschen wrote: I'm puzzled because I'm an idiot. > That's one thing you certainly are not. Bill -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html

Re: setup 2.926 release candidate - please test

2023-07-26 Thread Bill Stewart via Cygwin
On Fri, Apr 14, 2023 at 9:29 AM Jon Turney wrote: A new setup release candidate is available at: > > https://cygwin.com/setup/setup-2.926.x86_64.exe (64 bit version) > https://cygwin.com/setup/setup-2.926.x86.exe(32 bit version) > > Please test, and report any problems here. > > ... > > -

Re: Setup: How to automate source download for packages already installed?

2023-03-28 Thread Bill Stewart via Cygwin
On Mon, Mar 27, 2023 at 2:55 PM Jon Turney wrote: Sorry, based on the previous discussion at [1] this seems to be broken > at the moment, due to '-x' being broken. > > [1] https://cygwin.com/pipermail/cygwin/2023-February/252994.html > > If you really need this, please try old setup versions from

Re: Setup: How to automate source download for packages already installed?

2023-03-27 Thread Bill Stewart via Cygwin
On Mon, Mar 27, 2023 at 2:18 PM Bill Stewart wrote: On Wed, Mar 4, 2020 at 6:32 AM Jon Turney wrote: > > >> If a package is listed for both -x and -P, it is reinstalled, so while >> not ideal, you might be able to achieve something like what you want >> with 'setup -I -x

Re: Setup: How to automate source download for packages already installed?

2023-03-27 Thread Bill Stewart via Cygwin
On Wed, Mar 4, 2020 at 6:32 AM Jon Turney wrote: > If a package is listed for both -x and -P, it is reinstalled, so while > not ideal, you might be able to achieve something like what you want > with 'setup -I -x "package1,package2,package3" -P > "package1,package2,package3"' > > An option which

Re: cygrunsrv -L outputs nothing if service paths are quoted

2023-02-06 Thread Bill Stewart via Cygwin
On Mon, Feb 6, 2023 at 1:06 PM Corinna Vinschen wrote: Yeah, quoted paths were not handled at all. I pushed a new version > 1.64 which contains a patch. > Great; thanks! Bill -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/

cygrunsrv -L outputs nothing if service paths are quoted

2023-02-06 Thread Bill Stewart via Cygwin
FYI: In our corporate environment we run vulnerability scans, and one of the most common complaints of the scanner is "unquoted service paths." To fix this "vulnerability," I use a quoted service path for cygrunsrv.exe; e.g.: "C:\Program Files\Cygwin\cygrunsrv.exe" This seems to confuse

Re: Cygwin setup reporter as malware

2022-12-07 Thread Bill Stewart via Cygwin
On Wed, Dec 7, 2022 at 9:21 AM Sylwester Rutkowski wrote: The setup-x86_64.exe is reported as malicious at > https://www.virustotal.com/gui/file/edd0a64dc65087ffe453ca94b267169b39458a983b29ac31320fcaa983d0f97e/detection > > Can this be resolved somehow? This is, of course, a false positive.