|
|
Resetting permissions on multiple user folders
The way I actually have it set up (I wrote and submitted this hint) is cd /Volumes/Storage/Users because, as you said, my Users folder is in a different location.
Resetting permissions on multiple user folders
You have already used nireport, so why not use niutil for getting a user's home directory?
You may do something like
HomeDirLocation=`niutil -read . /users/$UserName | grep "home: " | sed 's/home\:\ //g'`
note: the above line is for the local domain; I don't have a server at hand, so I can't tell if "home: " (and the following "home\:\ ") will work for network domains too... (maybe not)
Resetting permissions on multiple user folders
What you want is:
HomeDir=`niutil -readprop / /users/$UserName home`
Resetting permissions on multiple user folders
Hey thanks! |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.07 seconds |
|