Skip to main content

A modified version of rm-protection (https://pypi.org/project/rm-protection/) with some new implementation. Mainly for myself.

Project description

protect-rm

A modified version of the rm protection

based on https://github.com/alanzchen/rm-protection

Added ability to setup protection for multiple files and directories with one profile.

use protect + file_names... to protect files and protect -R + paths to protect all files under certain directorys.

Following command is still under testing: Change the /usr/bin/rm to rm_old

then you could change the rm-p to rm

remember to run following commands to prevent access to rm

alias rm='rm-p -i'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

protect-rm-0.1.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

protect_rm-0.1.4-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file protect-rm-0.1.4.tar.gz.

File metadata

  • Download URL: protect-rm-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for protect-rm-0.1.4.tar.gz
Algorithm Hash digest
SHA256 f5cf7934c6af0de2f3f4e350998197c9ebd70549647c9007ecdee6418f238340
MD5 8ed151f79c8b3a4d67ad5aa810f2cd88
BLAKE2b-256 7b2ebe2f75356a1a9fdc03b2101d5b02bce3092e9cb5b24f1d22510f34261201

See more details on using hashes here.

File details

Details for the file protect_rm-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: protect_rm-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for protect_rm-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 65e289e67ab801aa5ab65c6409bbab8cd80540ebda49b42acba793a9ec3fde32
MD5 268334a0c7781e59b448c3efc599687f
BLAKE2b-256 472f2cb7024f0a3283d821e862893bb94eeed9c8e709bbc19e4cac8e8082805f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page