mind the explanatory gap

many a slip ‘twixt mind and lip…

mind the explanatory gap RSS Feed

Archive for software and scripts

Wrapping ‘defaults’ to be more flexible…

So I don’t know about any of you, gentle readers, but ‘defaults’ really gives me the shits sometimes.
Exhibit A:
/ $ defaults read /Library/Preferences/com.apple.loginwindow.plist
2007-11-21 13:12:04.288 defaults[97501:10b]
Domain com.apple.loginwindow.plist does not exist
/ $ defaults read /Library/Preferences/com.apple.loginwindow
(snip actual working output)
Exhibit B:
  / $ cd /Library/Preferences
/Library/Preferences $ defaults read ./com.apple.loginwindow.plist
2007-11-21 13:13:24.327 defaults[97540:10b]
Domain ./com.apple.loginwindow.plist does not exist
/Library/Preferences $ defaults read ./com.apple.loginwindow
2007-11-21 [...]

SirAdmin source code.

So I really thought I’d done this before… but I’ve had someone want to try and actually work on SirAdmin, and I hadn’t published the source code.
 You can download the source here.
I really have no time to work on it at the moment, and there really isn’t an itch to scratch since I started work [...]

New article on afp548.com

In response to some queries on the os x server mailing list, I’ve put up a new article on afp548.com with a script that will automatically disconnect disabled/asleep AFP sessions that have been idle over a certain time threshold.
Best to comment over there.

Making parts of the filesystem read/write from NetBoot

So we use NetBoot (well NetInstall really) a lot here for diagnostics and as a platform for radminding machines from.
I’ve recently been refactoring our entire Radmind setup here, mainly because we’ve been using it for so long that we’re not actually taking advantage of any of the features Radmind has introduced in the last couple [...]

Temporarily swapping user passwords in Open Directory

So something I find that I need to do quite often is to log in as a specific user, and I don’t always want to reset their password.
While AFP has a really useful function where you can allow admins of an AFP server to masquerade as a specific user by using the admin password, no [...]

wtfdtfd ? : A wiki-like system for the Mac OS X file system…

So I’m rather close to deploying a closed beta test of something that I’ve been working on in my spare time for a while now.
The basic idea is that you can browse a copy of the Mac OS X filesystem, and any registered user can attach “annotations” to a file or directory explaining what that [...]

SirAdmin … a GUI replacement for cyradm

Edit: Version 0.86b2 now available. (22/03/2007)
I initially wrote SirAdmin as a diagnostic tool, so that when users reported problems with certain mailboxes, my IT support staff who were not comfortable with the command line interface of cyradm could assign themselves an ACL to view such mailboxes in their own email client in order to quickly [...]

Forcing Mobile Home Directories to another partition.

So we never keep our user’s local home directories at /Users, primarily so that we can always blow away the boot partition with our imaging system without worrying about user data.
We’ve started using Mobile Accounts for some of our desktop users due to some limitations in the OS X Server AFP server, and it was [...]

A Mac OS X Startup Item for Sympa

Just so I don’t lose it if I forget and wipe my dev box…
This is a Mac OS X StartupItem for Sympa, which is essentially just the standard init script they distribute, but with the non-OS X stuff pulled out and redone with StartService() etc for the StartupItem format.
Note that you need to add “SYMPA=-YES-” [...]