Re: std::runtime_error on std::locale("")

2023-09-22 Thread Christian Franke via Cygwin
Takashi Yano via Cygwin wrote: On Thu, 21 Sep 2023 21:06:59 +0200 Christian Franke wrote: ... According to libstdc++ source, the internal function locale::facet::_S_create_c_locale() calls some __newlocale() which apparently does not arrive at newlocale() from cygwin1.dll. But cygstdc++-6.dll im

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https://learn.microsoft.com/sysinternals/downloads/psexec) This starts a Cygwin terminal as SYSTEM use

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Martin Wege via Cygwin
On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: > > Martin Wege via Cygwin wrote: > > Hello, > > > > Does Cygwin have a tool to run a bash script as SYSTEM user if my > > account already have admin rights? > > No (AFAIK). > > I use psexec from Sysinternals tools > (https://learn

Re: Question on statically linking with cygwin

2023-09-22 Thread Johannes Thoma via Cygwin
Hi Martin, Thanks for your answer, comments inline: Am 22.09.23 um 07:54 schrieb Martin Wege via Cygwin: On Tue, Sep 19, 2023 at 5:24 PM Johannes Thoma via Cygwin wrote: Hi, As I understood the reason for not being able to statically link the cygwin1.dll in to a binary and distribute that i

Re: Announcements now only go to the cygwin-announce list

2023-09-22 Thread Jon Turney via Cygwin
On 22/09/2023 00:46, Duncan Roe via Cygwin wrote Hi cygwin, On Thu, Sep 21, 2023 at 03:46:31PM +0100, cygwin wrote: The auto-forwarding of announcements from the cygwin-announce mailing list to the cygwin mailing list has been removed. This seems to be hard to make work reliably (sometimes it

Re: std::runtime_error on std::locale("")

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-21 23:56, Martin Wege via Cygwin wrote: On Thu, Sep 21, 2023 at 9:07 PM Christian Franke via Cygwin wrote: Brian Inglis via Cygwin wrote: On 2023-09-21 10:28, Takashi Yano via Cygwin wrote: On Fri, 22 Sep 2023 01:12:04 +0900 Takashi Yano wrote: I wonder why the following code thr

Re: Shell API to get Windows SID from Cygwin name?

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-21 23:58, Martin Wege via Cygwin wrote: Does Cygwin have a shell (e.g. bash) API to lookup the Windows SID for a given Cygwin user or group name? /usr/bin/getent usersid thisisausername Forget Windows! Think Unix: $ getent passwd $USER # sanitized output: $USER:*:$UID:545:U-$HOSTN

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Christian Franke via Cygwin
Martin Wege via Cygwin wrote: On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights? No (AFAIK). I use psexec from Sysinternals tools (https:

Re: Unmount USB stick from Cygwin shell?

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-21 23:47, Martin Wege via Cygwin wrote: How can I unmount an USB stick from the bash shell? Download and compile eject.c from Time-Nuts Tom Van Baak's LeapSecond.com tools directory: http://leapsecond.com/tools/ e.g. $ wget -N http://leapsecond.com/tools/eject.c

Re: Running bash script as SYSTEM from account with admin rights?

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-22 06:39, Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: On Fri, Sep 22, 2023 at 9:42 AM Christian Franke via Cygwin wrote: Martin Wege via Cygwin wrote: Hello, Does Cygwin have a tool to run a bash script as SYSTEM user if my account already have admin rights?

Re: cygwin coreutils 9.4 install.exe issue

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-22 07:07, Christoph Reiter wrote: it did a quick test of the coreutils rebase here https://cygwin.com/cgit/cygwin-packages/coreutils/log/?h=playground and noticed that "install" has a regression, in that "install " fails in case the target filename already exits. I did a bit of debug

Re: [hatari-devel] compilation failing for cygwin on cirrus CI

2023-09-22 Thread Thomas Huth via Cygwin
Am Sat, 16 Sep 2023 23:18:36 +0900 schrieb Takashi Yano : ... > Thanks for the report. I looked into this problem and found the cause. > I will release new SDL2 package where the issue has been fixed. Thank you very much for the quick fix! The Hatari CI pipeline is now working fine again: https:

Re: /usr/bin/dd *.iso to USB stick?

2023-09-22 Thread Jim Garrison via Cygwin
On 9/21/2023 22:40, Martin Wege via Cygwin wrote: Hello, How can I use /usr/bin/dd to copy a *.iso image (Debian netinstall boot image) to a USB stick as raw bytes? I do this frequently. You must start the Cygwin shell with admin rights, then use Windows Disk Management mmc app to identify th

Re: Shell API to get Windows SID from Cygwin name?

2023-09-22 Thread Allen, Norton T. via Cygwin
On 9/22/2023 8:07 AM, Brian Inglis via Cygwin wrote: On 2023-09-21 23:58, Martin Wege via Cygwin wrote: Does Cygwin have a shell (e.g. bash) API to lookup the Windows SID for a given Cygwin user or group name? /usr/bin/getent usersid thisisausername Forget Windows! Think Unix: $ getent passwd

Re: Shell API to get Windows SID from Cygwin name?

2023-09-22 Thread Brian Inglis via Cygwin
On 2023-09-22 18:15, Allen, Norton T. via Cygwin wrote: On 9/22/2023 8:07 AM, Brian Inglis via Cygwin wrote: On 2023-09-21 23:58, Martin Wege via Cygwin wrote: Does Cygwin have a shell (e.g. bash) API to lookup the Windows SID for a given Cygwin user or group name? /usr/bin/getent usersid thisi