Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Created May 10, 2016 14:02
Show Gist options
  • Save richardsonlima/eeabe8c1f1af30fedfa909effd3f33e7 to your computer and use it in GitHub Desktop.
Save richardsonlima/eeabe8c1f1af30fedfa909effd3f33e7 to your computer and use it in GitHub Desktop.
# 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