Posts Tagged ‘Mountain Lion’

Interesting new UNIX commands/binaries in OS X Mountain Lion

2012-07-27 by Patrick Seemann. 34 comments

In addition to those on its well-known list of 200+ new features, OS X Mountain Lion also brings along a handful of new UNIX commands and binaries. Most are probably outside the scope of Ask Different (e.g. commands concerning Radius Authentication, Kerberos or Berkeley DB maintainance) but some of them may prove valuable to (aspiring) power users out there. As always, you will find more information in the corresponding man pages.

Administrator commands (/usr/sbin)

sharing – create share points for afp, ftp and smb services

This is a great addition to the UNIX shell level: a tool to create, modify and delete share points (aka shared directories). In its most basic form it can be used like this to add a share for a specific directory on afp, ftp and smb/Samba:

sudo sharing -a /Users/bob/bobs-toolbox

To turn off guest access to the newly-created share, use

sudo sharing -e /Users/bob/bobs-toolbox -g 000

Removing the share entirely is as easy as

sudo sharing -r /Users/bob/bobs-toolbox

In addition, sharing allows for individual names and access rights for all three sharing protocols and access to protocol-specific details.

The only drawback is that the command must always be run as root, but that’s probably only a minor issue for most users and uses.

more »

Minimal Mountain Lion

2012-03-05 by stuffe. 3 comments

The recent announcements regarding the forthcoming addition to the menagerie of clawed operating systems from Cupertino was very interesting to me for a number of reasons.

Chief amongst them is “Wooo! New toys!”, closely followed by “Yay, more consistency!” and finally the slow dawning of realisation that an idea which has been floating around in my head for some time can now be put into action: Project Minimal Macbook! But first, some background…

When I first got my Macbook Air I was delighted with it, but had to rigidly enforce some new ideas about how I used it compared to my previous Macbook which had considerably larger storage capacity. I couldn’t even get close to restoring my data onto it, I had too much stuff, and so I had to work from a fresh install and keep in mind that I needed to be at least mindful, if not downright picky, about what software (and importantly “data”) I could afford to allow into its hallowed SSD halls.

Straight away out went iPhoto and iTunes. I could fill my puny 128Gb of space with my music and photos alone. Co-incidentally around about the same time that I got the Air I picked up my first non portable Mac, and my iPhone 4. That’s another story, but still, off you go dear data, there’s a nice fat spinning platter just waiting over there inside the iMac… But I couldn’t banish it forever; I may as well not have it if I can’t access it. So thank goodness for iTunes Home Sharing, and iPhoto Sharing. They might not be ideal solutions, but they allow me enough functionality to get by with only the occasional massive tantrum.

more »