Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save joseb0rges/df913a36b699e9ce38c71def3569ab25 to your computer and use it in GitHub Desktop.
Save joseb0rges/df913a36b699e9ce38c71def3569ab25 to your computer and use it in GitHub Desktop.
Restrict_commands
#!/bin/bash
echo "Inform the user:"
read user
for cmds in `cat comands.txt`
do
setfacl -m u:$user:r-- `which $cmds`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment