From d05b8ee0fd578f844dd00d34dd78bbbe39d1f66e Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Mon, 26 Feb 2024 00:52:04 -0300 Subject: [PATCH 01/11] Update README.md to disambiguate shell elevation. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9c85012d..b0505b82 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,9 @@ **gsudo** is a `sudo` equivalent for Windows, with a similar user-experience as the original Unix/Linux sudo. Allows you to run a command with elevated permissions, or to elevate the current shell, in the current console window or a new one. - -Just [prepend `gsudo`](#usage) (or the `sudo` alias) to your command and it will run elevated. For PowerShell use `gsudo { ScriptBlock }` [syntax](#usage-from-powershell--powershell-core). +Allows you to run a command (or re-launch your current shell) with elevated permissions, in the current console window or a new one. + +Just [prepend `gsudo`](#usage) (or the `sudo` alias) to your command and it will run elevated. For PowerShell use this [syntax](#usage-from-powershell--powershell-core): `gsudo { ScriptBlock }` One UAC popup will appear each time. You can see less popups if you enable [gsudo cache](#credentials-cache). From 82bb9b3939d015a30614db2c2a2e27736d57dbd7 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Mon, 26 Feb 2024 00:52:24 -0300 Subject: [PATCH 02/11] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index b0505b82..d1379bc7 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ [![GitHub Downloads](https://img.shields.io/github/downloads/gerardog/gsudo/total?label=GitHub%20Downloads)](https://github.com/gerardog/gsudo/releases/latest) **gsudo** is a `sudo` equivalent for Windows, with a similar user-experience as the original Unix/Linux sudo. -Allows you to run a command with elevated permissions, or to elevate the current shell, in the current console window or a new one. Allows you to run a command (or re-launch your current shell) with elevated permissions, in the current console window or a new one. Just [prepend `gsudo`](#usage) (or the `sudo` alias) to your command and it will run elevated. For PowerShell use this [syntax](#usage-from-powershell--powershell-core): `gsudo { ScriptBlock }` From 1d3847aa2d7f6868b435d4b12fbbdc915b497ea8 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Tue, 5 Mar 2024 12:49:56 -0300 Subject: [PATCH 03/11] Update FUNDING.yml --- .github/FUNDING.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index b6d10a0a..e76ae4aa 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,6 +1,6 @@ # These are supported funding model platforms -github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] +github: gerardog patreon: # gerardog ko_fi: # Replace with a single Ko-fi username tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel @@ -9,4 +9,4 @@ liberapay: # Replace with a single Liberapay username issuehunt: # Replace with a single IssueHunt username otechie: # Replace with a single Otechie username lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry -custom: ['https://gerardog.github.io/gsudo/sponsor'] +custom: ['https://www.paypal.com/donate/?business=EGM43RDQ4VRWJ&no_recurring=0&item_name=%0APlease+help+me+dedicate+more+time+to+gsudo%21%0AIf+gsudo+has+improved+your+productivity%2C+please+contribute%21¤cy_code=USD'] From f4f687365d0c37864cdab4a33006368fc01663e1 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Tue, 5 Mar 2024 14:20:03 -0300 Subject: [PATCH 04/11] Update sponsor.md --- docs/src/pages/sponsor.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/src/pages/sponsor.md b/docs/src/pages/sponsor.md index b0a94f99..6faa56e0 100644 --- a/docs/src/pages/sponsor.md +++ b/docs/src/pages/sponsor.md @@ -5,16 +5,20 @@ title: Sponsor ## Sponsor gsudo -Please consider sponsoring my open source work, mainly on gsudo. I have dedicated my free time for months making this project. +Hi, I'm Gerardo, a seasoned software developer from Argentina with a journey in programming that began at the age of 15. My passion for technology led me to create 'gsudo', an open-source project that enhances the windows desktop. -It also helps support the costs of the yearly renewal for the code-signing certificate. +Through sponsorship, you can help sustain the ongoing development of 'gsudo', including keeping it updated, adding new features, and potentially kickstarting new projects. Your support will address practical needs like covering code-signing certificate costs and other expenses, enabling me to focus on innovation and development. -> To provide a signed application (and not let the UAC popup show "Untrusted Publisher", which also protects end users by helping them detect that gsudo binaries hadn´t been altered) I have paid 56 USD each year, since 2020, for an Open-Source Code-Signing certificate. The [last purchase](https://github.com/gerardog/gsudo/issues/82) expired in Apr 2022. Please consider sponsoring me to ensure I can provide signed binaries for another year. +`gsudo` is delivered as a signed application. This ensures the UAC popup doesn't show "Untrusted Publisher", and protects end users detect that gsudo binaries hadn´t been altered. -💵 BTC 33LVf9Ek9hg5dQYf1EFWUoJaF5W3tWrrhZ +On Nov 2022, [Parag Mehta @parag_c_mehta](https://twitter.com/gerardo_gr/status/1595817336405168134) gifted me a code signing certificate which expires in Nov 2025. We have some months left to collect $632 for another [3 year renewal]([url](https://signmycode.com/code-signing-certificates)). -💵 ETH/USDC/USDT/SHIB 0x3c207f47a80b6feede8e9546ea1ca68635652452 +How to donate: + +💵 [Via GitHub Sponsors](https://github.com/sponsors/gerardog) 💵 One time, or recurring donations via [PayPal or Debit/Credit Card](https://www.paypal.com/donate/?business=EGM43RDQ4VRWJ&no_recurring=0&item_name=%0APlease+help+me+dedicate+more+time+to+gsudo%21%0AIf+gsudo+has+improved+your+productivity%2C+please+contribute%21¤cy_code=USD) -I'm working on sponsoring platforms, so this page may be updated soon. Still the mentioned platforms work. \ No newline at end of file +💵 BTC 33LVf9Ek9hg5dQYf1EFWUoJaF5W3tWrrhZ + +💵 ETH/USDC/USDT/SHIB 0x3c207f47a80b6feede8e9546ea1ca68635652452 From 346554e16db5cbda0c707e0437a355f8596aa018 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Thu, 14 Mar 2024 01:16:19 -0300 Subject: [PATCH 05/11] Update gsudo-vs-sudo.md --- docs/docs/gsudo-vs-sudo.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/docs/gsudo-vs-sudo.md b/docs/docs/gsudo-vs-sudo.md index c45aa4d9..8de4f936 100644 --- a/docs/docs/gsudo-vs-sudo.md +++ b/docs/docs/gsudo-vs-sudo.md @@ -6,7 +6,7 @@ title: Comparison with Microsoft sudo # Comparison between gsudo and Microsoft sudo -`gsudo` was born in 2019 as a productivity tool and is open-source. It has been downloaded over 700k times so far and has enjoyed a warm reception from users. +`gsudo` was born in 2019 as a productivity tool and is open-source. It has been downloaded over 700k times so far and has enjoyed a warm reception from users. It is very easy to install and works from Windows 7 SP1 up to Windows 11. Microsoft initially declined to create a similar tool, citing security concerns. However `gsudo`'s documentation [challenged this view](security.md) arguing that absolute security is unattainable without altering Windows itself, and that the default same-desktop UAC is not completely secure either. @@ -21,8 +21,9 @@ Surprisingly, Microsoft's sudo does not leverage new OS features to enhance secu | ------- | ------- | ------------------ | | Executes command with elevated permissions | Yes | Yes | | Supports output redirection (`sudo dir > file.txt`) | Yes | Yes | -| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Partial (Only with output redirection) | -| Returns the command exit code | Yes | No | +| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Yes (fixed in v1.0.0, Windows insider build 26080) | +| Returns the command exit code | Yes | Yes (fixed in v1.0.0, Windows insider build 26080) | +| Preserves the current directory | Yes | [It depends](microsoft/sudo#63) | | Source code available | [Yes](https://github.com/gerardog/gsudo) | Not for `sudo.exe`, but [promised](https://github.com/microsoft/sudo/blob/f8f1d05/README.md#contributing) | ### Security Impersonation Features @@ -58,7 +59,7 @@ Surprisingly, Microsoft's sudo does not leverage new OS features to enhance secu | Feature | `gsudo` | Sudo for Windows | | ------- | ------- | ------------------ | -| Elevation syntax | `gsudo { Script } -args $a,$b` [syntax](usage/powershell.md#using-gsudo-scriptblock-syntax) | Unknown, possibly: `sudo pwsh { script }` | +| Elevation syntax | `gsudo { scriptblock } -args $a,$b` [syntax](usage/powershell.md#using-gsudo-scriptblock-syntax) | Unknown, possibly: `sudo pwsh { scriptblock } -args $a,$b` | | Auto-complete of last 3 commands | Yes (with [gsudoModule](usage/powershell.md#gsudo-powershell-module)) | No | | Auto-complete of options | Yes (with [gsudoModule](usage/powershell.md#gsudo-powershell-module)) | No | | Red # indicator for elevation | Yes (with [gsudoModule](usage/powershell.md#gsudo-powershell-module)) | No | From 8b854a28b710210a2d46b31c14db04d146783a96 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Thu, 14 Mar 2024 01:19:40 -0300 Subject: [PATCH 06/11] Update gsudo-vs-sudo.md --- docs/docs/gsudo-vs-sudo.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docs/gsudo-vs-sudo.md b/docs/docs/gsudo-vs-sudo.md index 8de4f936..a4fc33c5 100644 --- a/docs/docs/gsudo-vs-sudo.md +++ b/docs/docs/gsudo-vs-sudo.md @@ -21,9 +21,9 @@ Surprisingly, Microsoft's sudo does not leverage new OS features to enhance secu | ------- | ------- | ------------------ | | Executes command with elevated permissions | Yes | Yes | | Supports output redirection (`sudo dir > file.txt`) | Yes | Yes | -| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Yes (fixed in v1.0.0, Windows insider build 26080) | -| Returns the command exit code | Yes | Yes (fixed in v1.0.0, Windows insider build 26080) | -| Preserves the current directory | Yes | [It depends](microsoft/sudo#63) | +| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Requires v1.0.0 / Windows insider build 26080 | +| Returns the command exit code | Yes | Requires v1.0.0 / Windows insider build 26080 | +| Preserves the current directory | Yes | [It depends](https://github.com/microsoft/sudo/issues/63) | | Source code available | [Yes](https://github.com/gerardog/gsudo) | Not for `sudo.exe`, but [promised](https://github.com/microsoft/sudo/blob/f8f1d05/README.md#contributing) | ### Security Impersonation Features From b7d55722d4aa0ad53b85d3303a5d4f07b00546a8 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Thu, 14 Mar 2024 01:35:45 -0300 Subject: [PATCH 07/11] Update sponsor.md --- docs/src/pages/sponsor.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/pages/sponsor.md b/docs/src/pages/sponsor.md index 6faa56e0..b7b2ab43 100644 --- a/docs/src/pages/sponsor.md +++ b/docs/src/pages/sponsor.md @@ -11,7 +11,7 @@ Through sponsorship, you can help sustain the ongoing development of 'gsudo', in `gsudo` is delivered as a signed application. This ensures the UAC popup doesn't show "Untrusted Publisher", and protects end users detect that gsudo binaries hadn´t been altered. -On Nov 2022, [Parag Mehta @parag_c_mehta](https://twitter.com/gerardo_gr/status/1595817336405168134) gifted me a code signing certificate which expires in Nov 2025. We have some months left to collect $632 for another [3 year renewal]([url](https://signmycode.com/code-signing-certificates)). +On Nov 2022, [Parag Mehta @parag_c_mehta](https://twitter.com/gerardo_gr/status/1595817336405168134) gifted me a code signing certificate which expires in Nov 2025. We have some months left to collect $632 for another [3 year renewal](https://signmycode.com/code-signing-certificates). How to donate: From 294f1114d89015c8a5ab9d28fa989574b8aca034 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Thu, 14 Mar 2024 19:35:06 -0300 Subject: [PATCH 08/11] Update gsudo-vs-sudo.md --- docs/docs/gsudo-vs-sudo.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/gsudo-vs-sudo.md b/docs/docs/gsudo-vs-sudo.md index a4fc33c5..6364c008 100644 --- a/docs/docs/gsudo-vs-sudo.md +++ b/docs/docs/gsudo-vs-sudo.md @@ -21,7 +21,7 @@ Surprisingly, Microsoft's sudo does not leverage new OS features to enhance secu | ------- | ------- | ------------------ | | Executes command with elevated permissions | Yes | Yes | | Supports output redirection (`sudo dir > file.txt`) | Yes | Yes | -| Supports input redirection (`echo md folder \| sudo cmd`) | Yes | Requires v1.0.0 / Windows insider build 26080 | +| Supports input redirection (`echo md SomeFolder | sudo cmd`) | Yes | Requires v1.0.0 / Windows insider build 26080 | | Returns the command exit code | Yes | Requires v1.0.0 / Windows insider build 26080 | | Preserves the current directory | Yes | [It depends](https://github.com/microsoft/sudo/issues/63) | | Source code available | [Yes](https://github.com/gerardog/gsudo) | Not for `sudo.exe`, but [promised](https://github.com/microsoft/sudo/blob/f8f1d05/README.md#contributing) | From 8d6143628990fa596ccbd01e62623dde340ad7f1 Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Thu, 14 Mar 2024 19:36:54 -0300 Subject: [PATCH 09/11] Update docusaurus.config.js --- docs/docusaurus.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 4298e4cc..f451053f 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -25,7 +25,7 @@ const config = { docs: { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. - editUrl: 'https://github.com/gerardog/gsudo/blob/docs/docs/', + editUrl: 'https://github.com/gerardog/gsudo/tree/master/docs/docs/', }, blog: { showReadingTime: true, From 9430e641a8b55500c182ad226743178205fd1b7a Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Thu, 14 Mar 2024 22:52:46 -0300 Subject: [PATCH 10/11] Update docusaurus.config.js --- docs/docusaurus.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index f451053f..04342221 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -25,13 +25,13 @@ const config = { docs: { sidebarPath: require.resolve('./sidebars.js'), // Please change this to your repo. - editUrl: 'https://github.com/gerardog/gsudo/tree/master/docs/docs/', + editUrl: 'https://github.com/gerardog/gsudo/tree/master/docs/', }, blog: { showReadingTime: true, // Please change this to your repo. editUrl: - 'https://github.com/gerardog/gsudo/tree/master/docs/blog/', + 'https://github.com/gerardog/gsudo/tree/master/docs/', }, theme: { customCss: require.resolve('./src/css/custom.css'), From 7891e52a0088dab35ce2c5c608531cd44287f53d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 23 Mar 2024 07:41:42 +0000 Subject: [PATCH 11/11] chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 Bumps [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware) from 5.3.3 to 5.3.4. - [Release notes](https://github.com/webpack/webpack-dev-middleware/releases) - [Changelog](https://github.com/webpack/webpack-dev-middleware/blob/v5.3.4/CHANGELOG.md) - [Commits](https://github.com/webpack/webpack-dev-middleware/compare/v5.3.3...v5.3.4) --- updated-dependencies: - dependency-name: webpack-dev-middleware dependency-type: indirect ... Signed-off-by: dependabot[bot] --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 1d4a4f1b..35947b65 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7630,9 +7630,9 @@ webpack-bundle-analyzer@^4.5.0: ws "^7.3.1" webpack-dev-middleware@^5.3.1: - version "5.3.3" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.3.tgz#efae67c2793908e7311f1d9b06f2a08dcc97e51f" - integrity sha512-hj5CYrY0bZLB+eTO+x/j67Pkrquiy7kWepMHmUMoPsmcUaeEnQJqFzHJOyxgWlq746/wUuA64p9ta34Kyb01pA== + version "5.3.4" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517" + integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q== dependencies: colorette "^2.0.10" memfs "^3.4.3"