Skip to content

Instantly share code, notes, and snippets.

@rtfpessoa
Created October 11, 2014 18:07
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rtfpessoa/0a5dab290e3f51dde3ae to your computer and use it in GitHub Desktop.
Revoke delete directory permissions
#
# Simple script to revoke delete permissions
#
DIRECTORY=$1
if [ "$DIRECTORY" != "" ]; then
chmod 0700 $1
chmod +a "group:everyone deny delete" $1
echo "Delete permissions revoked with success!"
else
echo "Please introduce a directory name!"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment