https://github.com/sixarm/chown-chmod-me
Use `chown` and `chmod` to set access control to exactly my user and primary group
https://github.com/sixarm/chown-chmod-me
Last synced: about 9 hours ago
JSON representation
Use `chown` and `chmod` to set access control to exactly my user and primary group
- Host: GitHub
- URL: https://github.com/sixarm/chown-chmod-me
- Owner: SixArm
- Created: 2020-06-27T21:16:42.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-14T08:42:22.000Z (9 days ago)
- Last Synced: 2025-04-14T09:44:33.871Z (8 days ago)
- Language: Shell
- Size: 3.91 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# chown-chmod-me: set file access control to solely me.
Syntax:
chown-chmod-me [paths]
Example that uses the current path:
chown-chmod-me
Example that uses the current path explicitly:
chown-chmod-me .
Example that uses multiple paths:
chown-chmod-me /foo /goo /hoo
## Implementation
This tool uses existing Unix commands:
* Use the command `chown` to set the user and group.
* Use the command `chmod` to remove non-user permissions.
* Use the command `id` to get the user name and primary group name.
This tool is this simple:
```sh
chown -R "$(id -un):$(id -gn)" "$@"
chmod -R go= "$@"
```We use this tool because it is easy and safe for people with a range of skill levels.
## Tracking
* Command: chown-chmod-me
* Version: 1.0.0
* Created: 2020-06-27T19:37:04Z
* Updated: 2020-06-27T20:55:27Z
* License: GPL-2.0-only
* Contact: [Joel Parker Henderson](http://joelparkerhenderson.com)