I have about 1200 users who's home folder permissions got reset. The "owner" is now blank.
I need a way of using chown to pull the username and then apply that username as the owner of the folder. For instance:
/Volumes/Stu2Data/2012Students/%USERNAME%
All usernames are a listing of numbers.
So, the command would be "chown -R 120001 120001". Since I need to do this for 1200 users, is there a way to pull the username of "120001" and apply that user as the owner for the folder named "120001".
Does this make sense, it's kind of hard to explain?
Thanks for your assistance!
-Shane
I need a way of using chown to pull the username and then apply that username as the owner of the folder. For instance:
/Volumes/Stu2Data/2012Students/%USERNAME%
All usernames are a listing of numbers.
So, the command would be "chown -R 120001 120001". Since I need to do this for 1200 users, is there a way to pull the username of "120001" and apply that user as the owner for the folder named "120001".
Does this make sense, it's kind of hard to explain?
Thanks for your assistance!
-Shane