- Posts: 160
- Karma: 20
- Thank you received: 62
diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *500.1 GB disk0
1: EFI EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 499.2 GB disk0s2
3: Apple_Boot Recovery HD 650.0 MB disk0s3
$ sudo hdiutil mountvol /dev/disk0s3
$ cd /Volumes/Recovery\ HD/com.apple.recovery.boot/
$ cp BaseSystem.dmg ~/Desktop/
$ cd ~/Desktop
$ chflags nohidden BaseSystem.dmg
$ hdiutil convert BaseSystem.dmg -format UDRW -o BS_RW.dmg
$ hdiutil mount BS_RW.dmg
/dev/disk3 Apple_partition_scheme
/dev/disk3s1 Apple_partition_map
/dev/disk3s2 Apple_HFS /Volumes/OS X Base System
$
$ cd /Volumes/OS\ X\ Base\ System/System/Installation/CDIS/
$ ls
Installation Log.app OS X Utilities.app
KeyRecoveryAssistant.app Time Machine System Restore.app
Lock.app instlogd
NetRestore.app mountrecursive
OS X Installer.app preheat.sh
$ mv Lock.app Lockh.app
$ cd Lockh.app/Contents/MacOS/
$ mv Lock Lockh
$ cd ../../../
$ cp -r /Volumes/OS\ X\ Base\ System/Applications/Utilities/Terminal.app ./Lock.app
$ cd Lock.app/Contents/MacOS/
$ mv Terminal Lock
$ cd ../../../
$ ls
Installation Log.app OS X Utilities.app
KeyRecoveryAssistant.app Time Machine System Restore.app
Lock.app instlogd
Lockh.app mountrecursive
NetRestore.app preheat.sh
OS X Installer.app
$ cd ~
$ hdiutil eject "/Volumes/OS X Base System"
$ hdiutil convert ~/Desktop/BS_RW.dmg -format UDZO -imagekey zlib-level=9 -o ~/Desktop/BS_C.dmg
$ cd /Volumes/Recovery\ HD/com.apple.recovery.boot/
$ sudo rm BaseSystem.dmg
$ sudo cp ~/Desktop/BS_C.dmg ./BaseSystem.dmg
$ cd ~
$ sudo hdiutil umount "/Volumes/Recovery HD/"
"/Volumes/Recovery HD" unmounted successfully.
Edit 'com.apple.Boot.plist' or replace it by file included at end of this post. The file is located at /RECOVERY_MOUT_POIUNT/com.apple.recovery.boot/....
<string>rp=file:///com.apple.recovery.boot/BaseSystem.dmg -s -v</string>
...
# nvram -d recovery-boot-mode
# nvram -d security-pinType
# nvram -d good-samaritan-message
# nvram -d fmm-password-hash
# nvram -d fmm-mobileme-token-FMM
# nvram -d fmm-computer-name
# nvram -c
Detach a disk, put it back into your Mac and turn machine on. Mac will be booted into Single user mode....
<key>Kernel Flags</key>
<string>-s</string>
<string>-v</string>
...
End of citation.First, we’ll create a new entry for the user under /Users:
dscl . create /Users/corybohon
Next, we’ll create and set the shell property to bash:
dscl . create /Users/corybohon UserShell /bin/bash
Next, we’ll add some user credentials, and set the user’s full name:
dscl . create /Users/corybohon RealName "Cory Bohon"
Now, we’ll create and set a unique ID for the user. Pick whatever works for you here, ensuring that it hasn’t been used by previous users:
dscl . create /Users/corybohon UniqueID 503
Next, we’ll create and set the user’s group ID property:
dscl . create /Users/corybohon PrimaryGroupID 1000
Now, we’ll set the user’s home directory by running the following command. Ensure that you replace both instances of the shortname in the command below:
dscl . create /Users/corybohon NFSHomeDirectory /Local/Users/corybohon
Now we’ll add some security to the user account and set their password. Here, you’ll replace “PASSWORD” with the actual password that will be used initially for their account. The user can always change the password later:
dscl . passwd /Users/corybohon PASSWORD
If the user will have administrator privileges, then we’ll run the following account to assign that title to the newly minted user:
dscl . append /Groups/admin GroupMembership corybohon
And, that’s it. The most simple way to create a user through the command line, and assign all of the OS X account privileges to the new account.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
xEngeLx wrote: That's the kind of info that is real treasure
Thanks!
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
it's seem like NVRAM still containing iCloud locktoken.paul wrote: Would you show me 'nvram -p' command output?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
We have 403 guests and no members online
This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.
You have declined cookies. This decision can be reversed.
You have allowed cookies to be placed on your computer. This decision can be reversed.
This website uses cookies to manage authentication, navigation, and other functions. By using our website, you agree that we can place these types of cookies on your device.