Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deepjyoti30/locker
Just another naive locker program for Linux written in shell
https://github.com/deepjyoti30/locker
chmod filesystem linux locker shell
Last synced: about 1 month ago
JSON representation
Just another naive locker program for Linux written in shell
- Host: GitHub
- URL: https://github.com/deepjyoti30/locker
- Owner: deepjyoti30
- License: mit
- Created: 2020-04-14T16:12:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-18T13:19:49.000Z (almost 3 years ago)
- Last Synced: 2024-05-27T12:45:08.230Z (6 months ago)
- Topics: chmod, filesystem, linux, locker, shell
- Language: Shell
- Size: 1.17 MB
- Stars: 22
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Locker
__ _
/ / ___ ___| | _____ _ __
/ / / _ \ / __| |/ / _ \ '__|
/ /__| (_) | (__| < __/ |
\____/\___/ \___|_|\_\___|_|
Just another naive locker for *nix
[![Made with Bash](https://img.shields.io/badge/Made%20with-Bash-red?style=for-the-badge)]() [![License](https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge)](LICENSE.md)
## Why this
I was just reading a book and then I found out that we can change the permissions of a directory to none for all the users and that basically doesn't let any program except rm access the directory.
Hence, I created a small, naive script that just adds the ability to change those permissions with a password, which means that the dir can be __locked__ using the password.
## Dependencies
Are you kidding me? It's written in Shell, no dependencies, enjoy.
## Installation
- Clone the repo and enter the dir
```git clone https://github.com/deepjyoti30/locker && cd locker```
- Install using make
```make install```
## Usage
```console
Usage: locker OPERATION DIR [--help]Positional arguments:
OPERATION: Either of [lock] or [unlock] can be passed.
DIR: Directory to operate on.Optional arguments:
--help: Show this message and exit
```
## Credits
Probably the book ```UNIX: concepts and applications``` by Sumitabha Das.