Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

dscl and external Volume

Hey everybody,


with


dscl . list /users


i can rad the Users informations from the boot Volume.

Someone an idea how I can read that informations from an external hard drive (mounted in targed disk)?


dscl /Volumes/External list /users


doen't work 😕


Data source (/Volumes/Virtual HD) is not valid

Posted on Sep 27, 2012 1:10 AM

Reply
Question marked as Best reply

Posted on Sep 27, 2012 9:56 AM

You need to read the individual plist files in /var/db/dslocal/nodes/Default/users/ on the drive in question.

5 replies

Sep 28, 2012 5:29 AM in response to Stress Test

I'm not sure what you did. I was thinking about listing the files then removing the path and .plist suffix which would give you the same results as listing with dscl but on another volumes. If the volume name and path are /Volumes/Virtual HD ->

sudo find /Volumes/Virtual\ HD/private/var/db/dslocal/nodes/Default/users/ -type f -name "*.plist" | \
while read line; do
line=${line##*/}
echo ${line%.*}
done

dscl and external Volume

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.