Deleting Files in Network Users Home - Users onSeparatePartition...

tlarkin
Honored Contributor

ha!

My preferred method is to see who owns the console. The currently
logged in user in OS X always owns the console no matter what. So just
set a variable like this

CurrentUser=ls -l /dev/console | awk '{ print $3 }'

Then call the variable in your command

rm -rf /Users/$CurrentUser/Library/Caches/Adobe InDesign

that is all you would need to do

2 REPLIES 2

robb1068
Contributor

Awesome! Thank you Tom and Craig... I was missing the piece on setting the
current user and I needed to make a small modification to the path to point
to the partition with the home folder. So I ended up with:

CurrentUser=ls -l /dev/console | awk '{ print $3 }'
rm -rf Volumes/Storage/Users/$CurrentUser/Library/Caches/Adobe InDesign

Thanks again!

Robb

ernstcs
Contributor III

See, I knew that Tom guy would pull through...I just got back to my desk.

Craig E