Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have Macbook Airs running 10.8.1. These are exposed to students in a k-12 setting. I'd like to restrict their ability to change the wallpaper of the desktop. Is there a setting to configure?

share|improve this question

I didn't find any way to prevent changing the desktop picture, but you could just change it back to the default every few seconds.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST
<plist version="1.0">
        <string>tell application "Finder"
set f to POSIX file "/Library/Desktop Pictures/Galaxy.jpg"
if desktop picture is not file f then set desktop picture to f
end tell</string>

Save the file above as /Library/LaunchAgents/, change the owner, and load the plist:

sudo chown root /Library/LaunchAgents/
sudo launchctl load /Library/LaunchAgents/

The property list is loaded automatically when users log in.

share|improve this answer
I have just started getting an error when I type in sudo launchctl load /Library/LaunchAgents/ I get launchctl: Dubious permissions on file (skipping): /Library/LaunchAgents/ nothing found to load Any suggestion on where to start looking for for a solution? – TiggerTazz Nov 7 '14 at 19:12

In Terminal, the following:

chown (USER)

Where (USER) is the short user name.

Then, lock that file:

chflags uchg /Users/(USER)/Library/Preferences/
share|improve this answer
Can you specify which shortname to use for the (USER) variables? I have an admin account and a student. When I enter: chown admin /Users/student/Library/Preferences/ It says permission denied. – Pangea Oct 1 '12 at 23:56
Isn't it owned by the user by default? Anyway chflags uchg didn't work for me. The desktop picture is changed before the plist is modified. – user495470 Oct 2 '12 at 0:22
This doesn't work with Safari option "set image as background" – Napolux Sep 27 '13 at 7:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.