Hot answers tagged

321

Using your computer logged in as root all the time is like always carrying around all your keys, your passport, $5,000 in cash, that piece of paper with all your passwords written on it and the only photo you have of Flopsy, the adorable rabbit whose death broke your seven-year-old heart. Oh, and a chainsaw. Which is to say, it's mighty convenient from time ...


164

First: the name "rootless" is misleading, since there's still a root account, and you can still access it (the official name, "System Integrity Protection", is more accurate). What it really does is limit the power of the root account, so that even if you become root, you don't have full control over the system. Essentially, the idea is that it's too easy ...


133

I just ported MenuMeters for El Capitan, please go to http://member.ipmu.jp/yuji.tachikawa/MenuMetersElCapitan/.


101

Marks in the Terminal The new Terminal marks (available starting with OS X 10.11 - El Capitan) are similar to Bookmarks, which are also available in the Terminal, allowing you to mark window positions and then giving you the option of going back at a later point. Marks (or Bookmarks) don't refer to your command history, but to the scroll buffer used in the ...


66

Copy the mpkg from inside the downloaded disk image onto your Desktop. Right click the mpkg file and choose Show Package Contents, then open the Contents folder. Open distribution.dist with a text editor. Remove lines 13 to 18. Save the file and open the mpkg normally.


56

⌘ CMD+⇧ SHIFT+. Reveals hidden files in Open/Save dialogs. Note: This is not working in Column View. The second part: Hidden files are usually sensitive and not experienced users should not edit them without knowing what are the consequences. Edit: You can also press ⌘ CMD+⇧ SHIFT+G and type the path to the hidden folder, just like in Terminal (⇥ TAB ...


50

For me, it means DTrace no longer works. DTrace is similar to ptrace/strace in Linux, in that it allows you to see what a process is saying to the kernel. Every time a process wants to open a file, write a file, or open a port, etc, it needs to ask the kernel. In Linux, this monitoring process happens outside of the kernel in "userland", and thus ...


47

Apple's documentation covers disabling SIP, About System Integrity Protection on your Mac. An article on lifehacker.com lists these steps: Reboot your Mac into Recovery Mode by restarting your computer and holding down Command+R until the Apple logo appears on your screen. Click Utilities > Terminal. In the Terminal window, type in csrutil ...


37

It's possible to disable SIP by booting to Recovery HD and running the following command: csrutil disable It is also possible to enable SIP protections and selectively disable aspects of it, by adding one or more flags to the csrutil enable command. All require being booted from Recovery in order to set them: Enable SIP and allow installation of ...


33

There's an OS X feature called authenticated restart that stores the FileVault key in the SMC for the duration of the reboot. Apple acknowledges in the manpage that it does reduce FileVault security for the duration of the restart: On supported hardware, fdesetup allows restart of a FileVault-enabled system without requiring unlock during the subsequent ...


32

Go to your user library in finder steps (go>(hold down the opt key), then click Library), navigate to the Preferences folder and remove any files that are or contain com.apple.finder.plist. Restart or log out and log back in again then empty the trash and try again.


31

If you care to read the tea leaves, the initial OS X v10.11 Developer Beta supports the following Macs: iMac (Mid 2007 or newer) MacBook Air (Late 2008 or newer) MacBook (Late 2008 Aluminum, or Early 2009 or newer) Mac mini (Early 2009 or newer) MacBook Pro (Mid/Late 2007 or newer) Mac Pro (Early 2008 or newer) Xserve (Early 2009) Source: OS X v10.11 ...


31

That is Handoff and a natural feature when OS X and iOS devices are signed into the same iCloud account. This works if you have iOS 8+ or OS X 10.10.x Yosemite. If you have a supported application then you will be able to open it on your Mac right where you left off on your iOS device. Looks like you was running Chrome on your iPad at the time. If you wish ...


30

What no-one seems to have pointed out so far is that /Applications are usable by everybody & ~/Applications are only for that user. Some installers will ask if you want to install for this user or for everybody. That's how it can differentiate. That will be one of the reasons Steam installs to there, as it's a per user license. Apple's app ...


28

These days if you want to install a different version of the software package with homebrew, you do it this way: $ brew tap homebrew/versions Then search for your desired package: $ brew search node This might give you the follow results: homebrew/versions/node012 homebrew/versions/node010 homebrew/versions/node08 homebrew/versions/node06 ...


27

If you're comfortable using the terminal, you might be able to figure out what the file is. If you're not comfortable using terminal, I wouldn't worry about doing this. I was doing this mainly for my own interest rather than any real need. Open terminal and enter the following commands (enter the text following the $): $ cd /lost+found $ ls -l total ...


26

In Mail.app's application's preferences, I deselected "Accounts > Advanced > Automatically Detect and Maintain Account Settings" on two Google accounts, and CPU usage returned to normal.


26

System Integrity Protection (SIP) is an overall security policy with the goal of preventing system files and processes from being modified by third parties. To achieve this, it has the following concepts: File system protection Kernel extension protection Runtime protection File system protection SIP prevents parties other than Apple from adding, ...


24

Apple makes its own drivers & they are included in the OS updates. The way to be up to date on drivers is to always be running the latest OS. There is debate over whether Apple make the entire driver set themselves, or just take NVidia/AMD's core code & add their own hardware/OS-specific code to it. The latter seems more plausible to me, but either ...


23

For people stumbling upon this in an OS X 10.11+ era (El Capitan or newer): Apple has added a whole new layer of security in OS X. They have taken away some privileges from root. The file you are trying to modify has a restricted flag. Only restricted processes which are signed by Apple will be able to modify these files. However, you can disable this ...


23

I think there is a misunderstanding here. An iOS app (from your iPhone) cannot run on your MacBook Pro. If you want to use a similar app on your Mac, I suggest you check if there is a Mac version of the application you want to use. You can search on the Mac App Store or on the app website.


22

There isn't any advantage to wiping and reinstalling OS X on a new Mac direct from Apple. You'll end up with the exact same drive contents. I can't think of any difference between an Apple-imaged Mac and a self-imaged Mac.


22

Depending on your system setup and your command you probably lost only some files - including one essential - and folders and some sym-links. Using the command rm * - executed by an admin in the root folder - usually deletes the sym-link /etc only: Boot to single user mode, check your file system with /sbin/fsck -fy, and mount root read/writable with ...


21

You can, but it's a major security and stability risk. Doing so allows any application full access to your computer. You can't know what they're doing with that access. It's unnecessary, and just really unsafe. For a lot more background information on this, see Why is it bad to login as root Why not run always logged in as root Why it is not recommend to ...


21

I just got this to work after an annoying 2 months! Select a single VIP Mailbox Go to View then Sort By then select All Mailboxes Go to the main VIP Mailbox and all should appear. If that works you can then try changing the sort to go back to Inbox only.


20

I have two alternatives: Press Cmd+L (go the Location/Search field), then Cmd+Return. Click the back button (<), then press Cmd while clicking the forward button (>). Both of these will open a tab in the background. (Often, Cmd + click opens the click target's reference in a new tab.) If you also press Shift while performing the second step of ...


20

First, you're not disabling SIP as a way to address the issue. Sorry that's the reason that this folder creation is failing, but we have to work around it. Second, you lose all the niceties Apple thought they were giving you, like a bridge via pyObjC, when you install your own Python. (I'll admit, they say you should install your own to /usr/local if you're ...


20

I have a solution that I was able to reverse engineer. I've tested it on my machine, running Yosemite 10.10.4 (14E46). If you can find the bundle ID (in the Info.plist file for the app bundle), you can use this script to force the app to appear in the notifications preferences pane. # "Usernoted" seems to be the "user notifications daemon", so get it's PID. ...


20

Use rsync for this purpose since cp cannot faithfully reproduce all the files that exist on OS X. The benefits of rsync over ditto and cp are: interrupted transfers can restart easily with very little cost. restarts even resume part way through a large file. file exclusion and --dry-run allow easy testing and iterative thinning. The simplest way to use ...


19

Here are few tools which help to investigate OS X memory issues: Basic: Run Console.app and check on 'All Messages' to see what's currently happening. Use top and hit Space to refresh - easier to find the cause problem. Use sysdiagnose command or shiftctrlaltcmd. to quickly gather system-wide diagnostic information helpful in investigating system ...



Only top voted, non community-wiki answers of a minimum length are eligible