Benches Uncategorized

4

Correct way to change diradmin password?

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I did a fresh install of 10.6 server in a controlled environment. Because I was the only one with access to the machine, I used a trivial password. Now that I want to put this machine into production, I want to change the root and diradmin passwords to something more secure.

What is the right process to do this?

4 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi

    There are a number of ways of doing this. For root I generally use passwd from the command line. For diradmin you could use dscl or WGM. The choice is yours.

    Tony

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Also look at generating public keys (certificates) for ssh connections and such, and distributing those out to your typical hosts, too. You can create a passphrase-login sequence for all your ssh and related activities, or a no-password login. This for hosts beyond the reach of your Open Directory server.

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    This did in fact work. It was scary at first though, because I did change the diradmin password using WGM, and I immediately lost the ability to unlock WGM. I thought I was really in trouble and facing a re-install. Rebooting seemed to clear this up though and now everything is fine.

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Presuming the weak passwords are wider than just the diradmin user...

    There is the password for root (and your first user's password is also used as the root password), there is the administrative user (that is what I suspect you're looking at here), and there are the various (other) spots that the passwords can get stored. Keychain being the most common spot. If you need to change the password for administrative user, you will also want to change the root user password, and once you start changing passwords via WGM or such, you'll end up seeing the keychain (in 10.6) prompt you for the old password or to clonk the keychain and start over again. (Mayhap 10.7 will see keychain tied into OD/LDAP? Who knows...)

    Anyway, short answer... Here, remember to change the root password, too.

    Some light reading on the subject: [HT1274|http://support.apple.com/kb/HT1274] and [HT1528|http://support.apple.com/kb/HT1528] and [TA20489|http://support.apple.com/kb/TA20489]