Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
I have an old Mac Mini (G4) running Leopard. My problem is that I cannot log in using Back to my Mac ( Screen Sharing ). I get as far as to the login window, but after login, the machine goes down ( crash completely ). I do not have the same problem with Intel-based Macs. I temporary solved this by activating automatic login. But after an upgrade of Leopard, the problem dissapaired - but after the last upgrade to 10.5.3 the problem is back - as the machine is in an other part of the country, and has no screen or keyboard - I was wondering if anyone can show me how to activate automatic login via the terminal, I have full access via SSH.
Where username is the name of the user you'd like to be logged in automatically.
0
MHaak·
Imported from the Apple Support Forums via the Wayback Machine 🔗
In order for the "defaults write..." method to work, you will need an encrypted version of the user's password stored in /private/etc/kcpassword.
This is automatically generated when Auto Login is set up via the standard Control Panel. If you don't have physical access, it could be copied from another machine to which you do have physical access and where the auto-logged-in user has the same password. Or it could be copied from any machine that already has the file and it contains the correct password.
If automatic login is enabled you will see an "autoLoginUser" key. If it is disabled you will see only the usual settings.
I suggest experimenting on your local machine to determine the correct key value (I can't remember them). You can then edit the plist with a defaults write or directly in vi/pico.
Cheers,
Rodney
0
Joaquim Lopes·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If auto login is disabled the value will be an empty string. To enable it set the value to the short name of the user you want to login automatically.
Unless you know what you are doing, I don't advise the use of vi or pico.
0
MHaak·
Imported from the Apple Support Forums via the Wayback Machine 🔗
You could use the following to set the auto login:
Where username is the name of the user you'd like to be logged in automatically.
0
MHaak·
Imported from the Apple Support Forums via the Wayback Machine 🔗
In order for the "defaults write..." method to work, you will need an encrypted version of the user's password stored in /private/etc/kcpassword.
This is automatically generated when Auto Login is set up via the standard Control Panel. If you don't have physical access, it could be copied from another machine to which you do have physical access and where the auto-logged-in user has the same password. Or it could be copied from any machine that already has the file and it contains the correct password.