Date created: Sunday, January 20, 2013 3:07:07 PM. Last modified: Monday, January 25, 2021 2:10:39 PM
Create AD Home Directories
Read usersnames over dscl from AD in magic triangles set up to create home directories on OS X file server
#!/bin/bash dscl /Active\ Directory/All\ Domains read /Groups/EDUCATION\\$1 GroupMembership | grep -v "GroupMembership:" | while read USERS; do createhomedir -u `echo $USERS | sed 's/EDUCATION//' | sed 's/ //'` done
Previous page: Connection Managing and Monitoring
Next page: EXT2/3/4 Mount