Ir para o conteúdo principal
Ajuda

Versão atual de: Larry Jorgenson

Texto:

I found this on Medium.com posted by Robert Hammen:
Similar to how iOS is configured, macOS is now on a separate partition from user data, which acts as if it is read-only (but in beta 1, it’s merely SIP-protected). In the beta, you’ll see “Macintosh HD” and “Macintosh HD — Data”. Data is a separate volume mounted in /System/Volumes. OS-installed applications live in /System/Applications, but the Finder presents them in /Applications as well. Apple calls the technology “firmlinking”. Beta 2 will be fully read-only by default.
Maybe this will help someone to update the commands required to remove a user folder and remove the .AppleSetupDone file (or whatever needs to be done to trigger the OOBE or new computer setup at startup.
+
+=== Update (02/26/2023) ===
+Just to update this thread - I've been doing the following commands for machines I'm going to sell:
+
+Big Sur/Monterey (From Recovery Terminal, not Single User)[br]
+csrutil disable[br]
+rm /Volumes/Macintosh\ HD/var/db/.AppleSetupDone [br]
+rm /Volumes/Macintosh\ HD/Library/Keychains/apsd.keychain[br]
+rm -rf /Volumes/Macintosh\ HD/var/db/ConfigurationProfiles/[br]
+rm -rf /Volumes/Macintosh\ HD/Users/user[br]
+csrutil enable[br]
+[br]
+[br]
+Older[br]
+Reboot to Recovery (cmd.[br]
+-R)[br]
+Open Terminaln[br]
+csrutil disable[br]
+Reboot to Single User Mode (cmd-S)[br]
+/sbin/fsck -fy[br]
+/sbin/mount -uw / [br]
+[Catalina is /sbin/mount -uw /System/Volumes/Data][br]
+sudo rm -rf /Users/user[br]
+/usr/bin/dscl . -delete "/Users/<username>"[br]
+sudo rm /var/db/.AppleSetupDone [br]
+sudo rm /Library/Keychains/apsd.keychain [br]
+sudo rm -rf /var/db/ConfigurationProfiles/[br]
+exit[br]
+cmd-Q to quit Welcome screen[br]
+Reboot to Recovery (cmd-R)[br]
+Open Terminal[br]
+csrutil enable[br]
+Quit Terminal[br]
+Shutdown[br]
+[br]
+[br]
+[br]
+El Capitan[br]
+mount -uw /[br]
+cd /var/db/dslocal/nodes/Default/users/[br]
+rm test.plist[br]
+rm -rf /Users/test[br]
+rm /var/db/.AppleSetupDone[br]
+shutdown -h now[br]
+[br]
+[br]
+If anyone sees any errors or missing commands in any of the above, please correct this. I have seen these additional commands mentioned elsewhere but have never been able to get these commands to work (returns an error). Any ideas?[br]
+# dscl . -delete /Users/{username}[br]
+# dscl . -delete /Groups/admin GroupMembership {username}[br]
+
+
+Starting in macOS Ventura you can know factory reset your mac same as iOS. But that will remove any third party apps you might be wanting to preserve. FYI.
+
+[br]
+Thanks!

Status:

open

Editado por: Dan

Texto:

I found this on Medium.com posted by Robert Hammen:
Similar to how iOS is configured, macOS is now on a separate partition from user data, which acts as if it is read-only (but in beta 1, it’s merely SIP-protected). In the beta, you’ll see “Macintosh HD” and “Macintosh HD — Data”. Data is a separate volume mounted in /System/Volumes. OS-installed applications live in /System/Applications, but the Finder presents them in /Applications as well. Apple calls the technology “firmlinking”. Beta 2 will be fully read-only by default.
-Maybe this will help someone to update the commands required to
-
-Remove a user folder and remove the .AppleSetupDone file (or whatever needs to be done to trigger the OOBE or new computer setup at startup.
+Maybe this will help someone to update the commands required to remove a user folder and remove the .AppleSetupDone file (or whatever needs to be done to trigger the OOBE or new computer setup at startup.

Status:

open

Editado por: Dan

Texto:

I found this on Medium.com posted by Robert Hammen:
Similar to how iOS is configured, macOS is now on a separate partition from user data, which acts as if it is read-only (but in beta 1, it’s merely SIP-protected). In the beta, you’ll see “Macintosh HD” and “Macintosh HD — Data”. Data is a separate volume mounted in /System/Volumes. OS-installed applications live in /System/Applications, but the Finder presents them in /Applications as well. Apple calls the technology “firmlinking”. Beta 2 will be fully read-only by default.
Maybe this will help someone to update the commands required to
-remove a user folder and
-
-remove the .AppleSetupDone file (or whatever needs to be done to trigger the OOBE or new computer setup at startup.
+Remove a user folder and remove the .AppleSetupDone file (or whatever needs to be done to trigger the OOBE or new computer setup at startup.

Status:

open

Postagem original de: Larry Jorgenson

Texto:

I found this on Medium.com  posted by Robert Hammen:

Similar to how iOS is configured, macOS is now on a separate partition from user data, which acts as if it is read-only (but in beta 1, it’s merely SIP-protected). In the beta, you’ll see “Macintosh HD” and “Macintosh HD — Data”. Data is a separate volume mounted in /System/Volumes. OS-installed applications live in /System/Applications, but the Finder presents them in /Applications as well. Apple calls the technology “firmlinking”. Beta 2 will be fully read-only by default.

Maybe this will help someone to update the commands required to

remove a user folder and

remove the .AppleSetupDone file (or whatever needs to be done to trigger the OOBE or new computer setup at startup.

Status:

open