Home › Forums › OS X Server and Client Discussion › Misc. › Leopard Client factory default
- This topic has 3 replies, 2 voices, and was last updated 18 years, 7 months ago by
khiltd.
-
AuthorPosts
-
April 8, 2008 at 6:10 pm #372111
Vic G.
ParticipantWhat is the equivalent single user mode command (Tiger’s is below) to reset Leopard client setup assistant to factory default… IOW, taking a user profile populated Leopard box and rendering it as if it was the first time is was booted out of the box… without reformat/reinstall/archive install… etc…
anyone?
Thanks,
mount -uw /
rm -rf /private/var/db/openldap
rm -rf /private/var/db/netinfo
rm -rf /private/var/db/samba
rm -rf /private/var/db/dhcpclient
rm -rf /private/var/db/.AppleSetupDone
rm -rf /private/var/db/.com.apple.iokit.graphics
rm -rf /Users/xxxxxxx
rm -rf /Library/Preferences
rm -rf /Library/Logs
rm -rf /Library/Caches
rebootApril 8, 2008 at 6:49 pm #372113khiltd
ParticipantWhat you have there would not have actually accomplished this on any version of OS X. Software installers routinely place things in more directories than you could ever hope to account for. In no particular order, some of the things that can lead to the unprovoked execution of non-factory default code are:
Address Book Plug-Ins
Contextual Menu Items Plug-Ins
Kernel Extensions
Application Services
Input Managers
Internet Plug-Ins
LaunchAgents
LaunchDaemons
LoginPlugins
Preference Panes
QuickTime Plug-Ins
Startup Items
SyncServices Schemas
SystemConfiguration Plug-Ins
Widgets
cron jobs
Spotlight Importers
QuickLook Plug-InsEven if you manage to find them all, figuring out which ones can be blown away without any ill-effects is not something you can script very easily since accurate bundle identifiers are not mandatory. If you need to re-flash a machine to its out-of-the-box state then you’re better off either doing a reinstall or using one of the various drive imaging utilities which can automate the process for you.
April 8, 2008 at 6:56 pm #372116Vic G.
ParticipantUnderstood, although I have successfully used this string of rm’s in the past, restored the flashed machine and it appeared to be free and clear… Are you saying that that string of commands I outlined is not thorough despite the fact that there is a setup assistant session executed after the fact?
Thanks for your input!!!
April 8, 2008 at 7:17 pm #372117khiltd
ParticipantYes, that is what I’m saying. MacBuddy will run whenever it’s told to regardless of what’s on the drive.
-
AuthorPosts
- You must be logged in to reply to this topic.