Mac Commands
Mac Commands
diskutil info /Volumes/DRIVE NAME | grep Owners sudo diskutil enableOwnership /Volumes/DRIVE NAME
Terminal To Rebind a System that refuses to bind to AD. In terminal run the following command Sudo s Cd /var/db/dslocal/nodes/Default/config ls -1 Kerberos:* rm Kerberos\:AD DOMAIN.NAME.plist sudo killall DirectoryService then rebind the system sudo rm -rdfv /Library/Preferences/DirectoryService sudo rm -rdfv /var/db/dslocal/nodes/Default/config sudo sudo killall -USR1 DirectoryService /private/var/db/dslocal/nodes/Default/config/Kerberos:YOURDOMAIN.NET.plist To kill Remote Controls defaults write /Library/Preferences/com.apple.driver.AppleIRControllerDeviceEnabled bool no To Show Hidden Files (and Revert Back) To reveal hidden files defaults write com.apple.finder AppleShowAllFiles TRUE killall Finder
To revert back defaults write com.apple.finder AppleShowAllFiles FALSE killall Finder To Change Ownersip and Gourp of a file sudo chown newuser filename sudo chgrp newgroup filename sudo chmod permissions filename An item in the Library/Startupitems folder must have the owner of "root", the group of "Wheel", and permissions of "-rwxr-xr-x" (i.e. chmod 751 /Library/Startupitems/file name) Permissions include read (4), write (2), execute (1), and no permission (0). So chmod 755 /File would mean Owner can read/write/execute (4+2+1 = 7) Group can read/Execute (4+1 = 5) Everyone can Read/Execute (4+1 = 5) To Set Up Image Automation Go to the netinstall-restore mount on the desktop of sctxsvr01 Go to netinstall-restore/Applications/Utilities/NetRestore Select preferences from the NetRestore Menu Select Enable Full Automation, and select the required images from the drop down menus. Time Machne Wont Work After Updating OS - Download EFIStudio if you don't have it - Launch EFIStudio; in the "Device" area, click on the field were it says "Display" and change it to "Ethernet" - Click on "Add Device" button below and in the new Editor window click on the "Write to com.apple.Boot.plist" button - Enter you password, close the program and reboot Mounting a toasted NTFS drive sudo mkdir -p /Volumes/C-DRIVE sudo /usr/local/bin/ntfs-3g /dev/disk1s1 /Volumes/C-DRIVE -olocale=en_US.UTF8,force,auto_xattr,defer_auth,defer_permissions,volname="C-DRIVE"
Login Hooks In Terminal type: sudo defaults write com.apple.loginwindow LoginHook /Library/Management/Script name Next type the following in Terminal: sudo chmod +x /Library/Management/Script Name To delete login hook sudo defaults delete com.apple.loginwindow LoginHook Allow Remote Login sudo systemsetup -setremotelogin on Fix ARD Sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all restart # Prefer 32-bit execution for Python 2.6.1 on Snow Leopard $ defaults write com.apple.versioner.python Prefer-32-Bit -bool yes fix ARD on 10.6.7 sudo /System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -configure -allowAccessFor -allUsers -privs -all Kill the This application was downloaded off the internet warning Sudo xattr -d -r com.apple.quarantine /Path/to/application/ Details.txt