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

Remote activation of auto-login System
If you want to enable automatic login on Mac OS X remotely you can to this by using ssh and the niutil command. This requires that you have enabled "Allow remote login" in the System Preferences, of course.

1) Open an ssh session to your Mac.

2) type su to become root.

3) To enable the automatic login, the property "username" must be found by loginwindow in the local netinfo database. Here is how you do it:
niutil -createprop -t localhost/local /localconfig/autologin[space]
username user_to_log_in
(NOTE: shown on two lines; replace [space] with an actual space character and enter on one line)

Replace "user_to_log_in" with the username of the user who will be automatically logged in on restart.

4) Type "reboot" to restart you mac and see if it worked.
  • Currently 3.33 / 5
  You rated: 2 / 5 (3 votes cast)

Remote activation of auto-login | 1 comments | Create New Account
Click here to return to the 'Remote activation of auto-login' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Remote activation of auto-login
Authored by: bossa nova on Sep 07, '03 09:28:00PM

Has anyone else been able to get this to work. It looks like there is a space after "local" as well but I can't get it to work. Is "localhost/local/" a generic name for "" or is it literal? I forgot to turn on autologin on my machine before rebooting to come back with a VNC session. Whoops! No one there until Monday...looks like I may be screwed.



[ Reply to This | # ]