Created
May 15, 2021 14:44
-
-
Save joseb0rges/df913a36b699e9ce38c71def3569ab25 to your computer and use it in GitHub Desktop.
Restrict_commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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