Add a Message to Your Mac's Lock Screen - OS X Guide

Customizing Your Mac's Login and Lock Screen Message
It is possible to personalize the message displayed on your Mac’s login and lock screen. This feature offers a practical way to add information or motivation.
Why Customize the Login Message?
A customized message can serve various purposes. For example, you might choose to display an inspirational quote or a helpful notice.
How to Add a Message
The process of adding a message is straightforward. It allows for a unique touch to your Mac’s security screens.
Here’s how you can implement this customization:
- Open the Terminal application.
- Enter the following command:
sudo defaults write /Library/Preferences/com.apple.loginwindow Loginmessage -string "Your desired message here". - Replace "Your desired message here" with the actual text you want to display.
- Press Return and enter your administrator password when prompted.
Important Considerations
The message you set will be visible to anyone accessing your Mac’s login or lock screen. Therefore, avoid including sensitive or private information.
To remove the custom message, use this command in Terminal: sudo defaults delete /Library/Preferences/com.apple.loginwindow Loginmessage.
This will revert the login screen to its default state, removing the personalized message.
Customizing Your Lock Screen: Adding a Message Through System Preferences
Two distinct approaches exist for displaying a message on your Mac's lock screen. We will first detail the simpler method utilizing the System Preferences. Subsequently, a more advanced, command-line technique will also be presented.
Begin by accessing System Preferences, then navigating to the Security & Privacy panel. Within the General tab of this preference pane, locate and click the lock icon situated in the bottom-left corner of the window.

The system will then prompt you to enter your administrative password for authentication.

Following authentication, select the option labeled "Show a message when the screen is locked". Then, click the "Set Lock Message..." button to proceed.

A dialog box will appear. Enter your desired message into this field and confirm your entry by clicking "OK".

The customized message will now be displayed on your lock screen, positioned above the options for sleep, restart, and shutdown.

This message can be modified at any time, allowing for frequent updates. Consider utilizing this feature to display a new message daily, if desired.
Customizing Your Mac's Lock Screen with a Message
A straightforward method exists for displaying a message on your Mac's lock screen, offering a quick solution. However, for those who prefer utilizing the command line, OS X's Terminal application provides a powerful and versatile alternative.
As previously demonstrated, the Terminal allows for a wide range of customizations and functionalities beyond basic operations.
Related: Adjusting Screenshot Saving Locations in OS X
For instance, you can configure your screensaver to function as your desktop background. Furthermore, the Terminal enables modification of screenshot destinations and file types.
Accessing the Terminal
To start, locate and open the Terminal application. It is found within the Applications>Utilities directory.
Once the Terminal is open, input the following command after the prompt. Copying and pasting is also an acceptable method, followed by pressing "Enter".sudo write /Library/Preferences/com.apple.loginwindow LoginwindowText "Your Message Here"
Remember to replace "Your Message Here" with your desired text. Entering this command will prompt you for your system password.
Modifying or Removing the MessageTo update the message, simply re-execute the command with the new text you wish to display.
To remove the message entirely, use the following command, ensuring there is nothing between the quotation marks:
sudo write /Library/Preferences/com.apple.loginwindow LoginwindowText ""
Whether you choose the simpler approach or the more advanced Terminal method, adding a personalized message to your Mac’s lock screen is a useful way to provide reminders, motivational quotes, or instructions to other users.