Archive for September, 2007

How to get an Admin account when you already have root…

Tuesday, September 4th, 2007

Yup, that’s what this articleB instructs you to do.

This is a major security flaw, but it is used nowadays by tech support if something happened and your computer crashed, or something got messed up with your password.

Major security flaw? Ever used a UNIX based system before?

Booting in single-user mode gives you root access. You can do anything on the system - and you suggest we run setup assistant again to weasel an Admin account? This account would be plainly visible in the Accounts pane.

There’s much more sleekit opportunities for skullduggery if you have the machine in single-user mode!

Cocoa…

Tuesday, September 4th, 2007

Wade Williams wrote on the dotnetaddict blog:

One of the toughest hurdles I had to overcome when learning Cocoa coming from the procedural C world was learning to look for the easy way. It’s been a long time so I don’t remember the details, but I have a hazy memory of one example of wanting to print an NSView. I started off thinking I’d need to subclass the NSView, implement a print method, figure out what methods I’d need to call in there to create a connection to the printer and then I guessed I’d need to draw the view again to some special printer view to make it actually print.

The real answer? Send the NSView a print message. Done.

In short, it took quite a while to quit looking for the hard way to do something and shift to the mindset of assuming there was an easy way until proven wrong.

Thanks, Wade. I don’t have your contact details, but it’s a great quote.