Skip to main content
Question

User Profile Default Icon

  • December 31, 2018
  • 3 replies
  • 28 views

Forum|alt.badge.img+5

Does anyone know how to change a users picture to a picture I have added to the User Pictures. All the current terminal command lines don't work. (IE Mojave)
I would like to set a default for all users. I have looked for prefrences.plist and still have found nothing. Thanks!!

3 replies

Forum|alt.badge.img+8
  • Contributor
  • January 1, 2019

The picture is stored in the Open Directory database, usually as a picture in the 'JPEGPhoto' field, or a reference to a picture file in the 'Picture' field.
(note there are some requirements to the type of picture, size and type, test!)

But if you edit it: this should do the trick:

  dscl /Local/Default -write Users/${USER_SHORTNAME} Picture "/Library/User Pictures/Your Liking.tif"

and delete the 'JPEGPhoto'

(a personal side note: why would you like to manage this? Users like to edit this picture, to make a mac more 'personal', which makes them treat the mac better)


Forum|alt.badge.img+5
  • Author
  • Contributor
  • January 2, 2019

So I have tried countless times this command and it doesn't work. I use stock images with the same results
I know it stores a binary code in the users Director Editor under the JPEGPhoto filed, but again no command line will easily set the path of the assigned photo.

(These macs are not being assigned as a personal device and the picture is always changeable by the user if they want to change it)


Forum|alt.badge.img+5
  • Author
  • Contributor
  • January 2, 2019

update, after playing around deleting the picture using sudo command and -append it all the location of the picture it worked.. maybe need to explore some more.