Created
May 10, 2016 14:02
-
-
Save richardsonlima/eeabe8c1f1af30fedfa909effd3f33e7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# cat set_perms_accounts.sh | |
#!/bin/bash | |
# set -x | |
for user in $(cat /home/richardson/outputaccounts.txt); do echo -e '\033[1;32m [+] Setting correct permissions for user: \033[0m'$user && chown $user:mail /var/spool/mail/$user; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment