Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Add a text message to the login window' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Add a text message to the login window
Authored by: syzygies on Jan 18, '08 08:23:01AM
The best way to edit system property lists is using the 'defaults' command. This is scriptable. I want a message in case my MacBook gets separated from me at airport security, and a per-system identifier to diagnose restart issues, so I use the script

#!/bin/bash

plist="Library/Preferences/com.apple.loginwindow"
key="LoginwindowText"
text="(me, me@dot.org, +1 xxx-xxx-xxxx)"

defaults write /$plist $key "'OSX $text'"
defaults write /Volumes/OSX2/$plist $key "'OSX2 $text'"
defaults write /Volumes/OSX3/$plist $key "'OSX3 $text'"
defaults write /Volumes/iOSX/$plist $key "'iOSX $text'"

defaults read /$plist
defaults read /Volumes/OSX2/$plist
defaults read /Volumes/OSX3/$plist
defaults read /Volumes/iOSX/$plist
One must run this script using the 'sudo' command. The quoting is subtle here; don't mess with it unless you understand it.

[ Reply to This | # ]