https://github.com/refi64/usudo
A lightweight, command-line-friendly sudo for Windows
https://github.com/refi64/usudo
command-line command-line-tool golang sudo windows
Last synced: 6 months ago
JSON representation
A lightweight, command-line-friendly sudo for Windows
- Host: GitHub
- URL: https://github.com/refi64/usudo
- Owner: refi64
- License: other
- Created: 2017-02-26T01:51:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-08-24T00:11:10.000Z (over 7 years ago)
- Last Synced: 2025-09-29T21:54:27.265Z (6 months ago)
- Topics: command-line, command-line-tool, golang, sudo, windows
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
usudo
=====
A ``sudo`` for Windows designed to handle both command-line and windowed
applications well.
What's wrong with the others?
*****************************
Nothing in particular. However, what I wanted was:
- Something that didn't depend on PowerShell or VBScript. It should be a
self-contained binary.
- Something that worked well with command-line programs, e.g. pausing after
the application finishes so you can actually see any errors/messages.
Downloads
*********
All binaries (for X86 *and* X64) are available at
`files.fm `_.
How to use
**********
Toss up all 3 executables up somewhere in your PATH. The two important ones are
``usudo.exe`` and ``usudo-w.exe``.
``usudo.exe`` will *always* open a command prompt, and it will ``pause`` once
the application finishes running. ``usudo-w.exe`` will NOT open a command prompt
unless necessary (e.g. running a command-line-only application), and there's no
pause after it finishes.
**TL;DR:** Use ``usudo.exe`` for command-line applications and ``usudo-w.exe``
for windowed applications.
Example usage::
usudo choco install googlechrome
usudo-w notepad some-important-file.txt