23

Our community group has just had three Apple Macs donated to us. Two are laptops with macOS Sierra installed and one is an iMac with macOS High Sierra installed.

I’ve been asked to add a custom message to the login screen acknowledging the donation, but I am not familiar with Apple Macs. It only needs to be a simple message like:

This Mac was kindly donated by X.

Is there a way of doing this without having to use any 3rd party software? I would need some very clear steps.

1
  • 1
    Also, you can just call them "Macs." ;-)
    – Raydot
    Commented May 9, 2018 at 22:12

4 Answers 4

36

This can be done without 3rd party app. Simply open System Preferences.app -> Security & Privacy -> Show message when the screen is locked. Here are the steps:

  1. Open "System Preferences" (located in you applications folder)
  2. Select "Security & Privacy"
  3. Unlock the padlock
  4. Set the lock message

enter image description here enter image description here

4
  • 5
    Good answer! I totally forgot about this option, and it's much easier for a new Mac user. :)
    – Monomeeth
    Commented May 9, 2018 at 12:03
  • 1
    Very nicely explained for a Mac newbie. +1.
    – Nimesh Neema
    Commented May 9, 2018 at 14:43
  • 8
    Upvoted despite the lack of freehand circles.
    – user173518
    Commented May 9, 2018 at 20:02
  • Just a heads up, I don't know if this is still the case, but historically you would have to log out twice before you would see the message update. Commented May 10, 2018 at 19:26
21

Yes, you can do this by using Terminal. More specifically:

  1. Open the Terminal app (by default this is located in the Utilities folder within your Applications folder)
  2. Now copy the following command and paste it into your Terminal window:

    sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "This Mac was kindly donated by X."

  3. Now press the delete key a few times to remove the X

  4. Type in the rest of your custom message. Make sure you close it off with the second quotation mark at the end.
  5. Press the enter key
  6. You’ll be prompted for your password. Type it in and press the enter key again (Note: You will not see the cursor move or the password on the screen)

Now when you’re back on the login screen you will see your custom message displayed below your list of users.

1
  • 6
    For anyone who isn't comfortable with shell programming: Watch out for dollar signs in your custom message! It might be easier to just surround it with single quotes and replace any single quotes in the message with '\''.
    – SilverWolf
    Commented May 9, 2018 at 18:23
5

In the Terminal:

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "Your Message Here"
0

Via GUI

You can do this via System Preferences -> Security & Privacy -> General, see How to set a lock message on the login window of your Mac for details.

Via Command Line

sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText "The Custom Message here. 
    The message can be multi-line as well and will work fine"

As a policy banner

You can also set a policy banner by following this instructions from Apple

  • Create a plain text (.txt) or rich text (.rtf) document that contains your banner.
  • Choose File > Save, then enter PolicyBanner for the document name.
  • Copy the PolicyBanner file to the /Library/Security/ folder.
  • Run chmod o+r /Library/Security/PolicyBanner.txt

This may be useful for people who wanted to show the custom message on lock screen due to reasons like when their Mac is lost then they can display a contact number. Because the custom message of login window seems to be displayed only when we login-in and then lock the screen. During initial login, the custom message is not displayed. (Probably because this custom message is user specific and not applicable to all the users).

4
  • According to the support document you link to even the policy banner won't show if FileVault is enabled (which nowadays is done by default).
    – nohillside
    Commented May 29, 2020 at 16:23
  • @nohillside: oh ok. Is there any other solution for displaying the contact details when MAC is lost? Commented May 29, 2020 at 16:46
  • Register it with "Find my Mac" and send a message once it's lost?
    – nohillside
    Commented May 29, 2020 at 17:03
  • oh ok. looks like there is no solution within the computer without using internet Commented May 29, 2020 at 17:14

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .