Skip to content

Just another naive locker program for Linux written in shell

License

Notifications You must be signed in to change notification settings

deepjyoti30/locker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Locker

   __            _             
  / /  ___   ___| | _____ _ __ 
 / /  / _ \ / __| |/ / _ \ '__|
/ /__| (_) | (__|   <  __/ |   
\____/\___/ \___|_|\_\___|_|   

Just another naive locker for *nix

Made with Bash License

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

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.

About

Just another naive locker program for Linux written in shell

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published