https://github.com/purplebooth/fix-gnupg-permissions
https://github.com/purplebooth/fix-gnupg-permissions
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/purplebooth/fix-gnupg-permissions
- Owner: PurpleBooth
- License: cc0-1.0
- Created: 2020-04-18T22:15:00.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-09-01T20:25:23.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T10:44:18.364Z (over 1 year ago)
- Language: Rust
- Size: 236 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Fix GnuPG Permissions
Fix the permissions on the GnuPG config directory.
## Usage
``` bash
fix-gnupg-permissions
```
## Installing
First tap my homebrew repo
``` shell
brew tap PurpleBooth/repo
```
Next install the binary
``` shell
brew install PurpleBooth/repo/fix-gnupg-permissions
```
You can also download the [latest
release](https://github.com/PurpleBooth/fix-gnupg-permissions/releases/latest)
and run it.
## How does it work
Well here's a version of this in bash, if that makes it clearer
``` shell
#!/usr/bin/env bash
set -euo pipefail
# Same as doing this
chmod 700 "$HOME/.gnupg"
chmod 600 "$HOME/.gnupg/gnu-agent.conf"
```
## License
[CC0](LICENSE.md) - Public Domain