I’m going to take an in-depth look into Mac OS X Leopard’s new External Accounts feature…

Setting up External Accounts
Follow the instructions on pages 208-209 in the 10.5 Server’s User Management PDF.

Workgroup Manager > Preferences > Mobility > Account Creation > Options

Pastedgraphic

Using External Accounts
When you log into a machine with Mobile/External Accounts enabled, you’ll be presented with the ‘Create a mobile account’ dialog box. If allowed, you can choose a disk and you’ll have an External Account.
Pastedgraphic-1

OK, but what actually happens?
First off, the system creates a home folder for the user on the selected disk inĀ  the root level folder Users (creating it if needed). This is obvious and makes sense – and its documented in the User Management PDF.

What you don’t see (because Finder hides it) is that another folder gets created at the root level of the drive. The system creates the following path on your External Account’s disk: /private/var/db/shadow/hash/ That folder contains hashes for the users’ passwords. It is what enables disconnected authentication or for the account to be used on a machine not bound to the same Open Directory master.

Now that’s a cool feature! You can plug your hard drive into any Mac running 10.5 at the loginwindow and you’ll be asked if you want to enable the external accounts for your system. You will need to authenticate with an administrator password (naturally), but if you enable logins and successfully log in, you’ll get full access to your External Account as if it were a regular account.

“How does that work,” you may ask. Well, the system creates another hidden file inside your External Account’s home folder named .account. It is a standard OS X plist file that contains all of the essential account info. That’s the magic.
Pastedgraphic-2

I think that External Accounts are a great extension to the already excellent Mobile Accounts (synching is a great ability!) and they’re very interesting for portable users. Put your External Account on your startup disk, start into FireWire target disk mode, and connect to any 10.5 system and with administrator permissions, you can log in.

I’m sure some enterprising Mac admins out there will come up with creative ways to use this.

A note about security
You should take into account that the files stored on the external drive are protected by filesystem permissions and nothing stronger. I would advise keeping careful track of the drive and consider setting up FileVault for it as well.

Definitely FileVault.

  • Share/Bookmark