Skip to content
/ permrs Public

A utility to save and restore your permissions in case you screw them up.

License

Notifications You must be signed in to change notification settings

gort818/permrs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

permRS

Permission Restore

Utlity to save and restore unix permissions

Use permRS to created a backup of file permissions just in case you accidentally run chmod where you are not supposed to.


USAGE:
    permrs [FLAGS] [OPTIONS]

FLAGS:
    -h, --help       Prints help information
    -r, --restore    Restore unix permissions
    -s, --save       Save unix permissions
    -V, --version    Prints version information

OPTIONS:
    -p, --path <path>    Set path to save permissions [Default: ~/]

Examples

  1. To Save all permissions starting from root

    sudo permrs -sp /

  2. To Save all permissions in your home folder

    permrs -sp ~/

  3. To save permisions in your working path

    permrs -sp ./

  4. To restore your permissions

    permrs -r

  5. If you ran permrs -s as root use restore as root.

    sudo permrs -r

Installation

Refer the AUR package.

Notes

permRS will automatically skip any directories or files you do not have access to as a regular user.

Run permRS as root if you want your permissions on all your directorties or files.

Building

Requirements: Rust, Cargo

git clone https://github.com/gort818/permrs

cd permrs

cargo build --release

Binary will be created in /permrs/target/release/

About

A utility to save and restore your permissions in case you screw them up.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages