Scripting

Script to set permissons of Directories to the dir name. Useful for Home Directories.

#!/bin/bash
more /root/listofaccounts.txt | while read line
do
        chown $line:$line /home/$line -R
        chmod 755 /home/$line
        echo "done:" $line
done
exit


Comments

Popular Posts