Hot answers tagged

2

Was brave enough to do it myself. For future readers, add: yourusername ALL=(ALL) NOPASSWD: /usr/sbin/systemsetup after ## User privilege specification ## root ALL=(ALL) ALL %admin ALL=(ALL) ALL


1

mount | grep /Volumes/foo | cut -d ' ' -f1 or mount | awk '/Volumes\/foo/ { print $1 }'


1

Unless your $PATH is different than normal, you could solve that with a sym link of the tool you want. $echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin Then if the libtool you want to run first is /usr/local/libtool/bin/libtool then a quick sudo ln -s /usr/local/libtool/bin/libtool /usr/local/bin At that point, you might have to restart your ...


1

To enable passwordless sudo for all admin users on the machine: Run sudo visudo Change the line reading %admin ALL=(ALL) ALL to %admin ALL=(ALL) NOPASSWD ALL Save changes (press Escape, type :wq! at the command prompt and hit enter).


1

You can find Moom app preferences on the following file: ~/Library/Preferences/com.manytricks.Moom.plist That file is not in clear text. But you can use plutil to convert and read it in the following way: plutil -convert xml1 -o - com.manytricks.Moom.plist


1

I had to do the following steps in order to make it work. # Change working directory cd ~/.ssh # Remove the old public key rm id_rsa.pub # Create a new public key ssh-keygen -y -f id_rsa > id_rsa.pub # Change permission chmod 600 id_rsa* # Add the key to ssh ssh-add id_rsa # Then finally test it (I used github) ssh -i id_rsa.pub git@github.com The ...



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