palmer
  • Member for 12 years, 6 months
  • Last seen more than 10 years ago
6 answers
88 votes
185k views
How do I create user accounts from the Terminal in Mac OS X 10.5?
Accepted answer
86 votes

Use the dscl command. This example would create the user "luser", like so: dscl . -create /Users/luser dscl . -create /Users/luser UserShell /bin/bash dscl . -create /Users/luser RealName "Lucius Q. ...

View answer
8 answers
103 votes
126k views
How do I set the global PATH environment variable on OS X?
7 votes

You're going to have to set it on a shell-by-shell basis; Bash and csh-like shells do not share the same configuration files and syntax for adjusting the PATH. Trying to do this in launchctl will not ...

View answer
2 answers
0 votes
213 views
Distributed User Authentication
0 votes

Check out OS X Server's Open Directory. it'll authenticate Macs, Linux and Windows (via a NT4 style domain, but it works). More importantly, it's just a bunch of easy clicky buttons to set ...

View answer
21 answers
35 votes
1k views
What do you wish developers would do differently?
3 votes

Configure and lay things out in a predictable way with predictable ways of changing them for the OS(en) you're developing for. This means everything. For instance: OpenLDAP has a weird way of doing ...

View answer
11 answers
16 votes
1k views
Is there a standard method of proving password security to non-mathematicians?
2 votes

Actually, you can selective scan against brute force ssh attacks using iptables, if this works for you. These two strings: iptables -A INPUT -p tcp --dport 22 -m conntrack --ctstate NEW -m recent --...

View answer
9 answers
4 votes
8k views
Converting to and from epoch time
0 votes

It may be a little heavy duty, but in perl there's a great module called DateTime that'll convert back and forth between a myriad of date & time formats, including epoch. It's very simple to use: ...

View answer
6 answers
36 votes
52k views
How to reclaim all/most free space from a sparsebundle on OS X
0 votes

I don't know of a free way to do it, but I believe Prosoft Drive Genius will do what you're needing here: http://www.prosofteng.com/products/drive_genius.php You mount the sparsebundle, defrag it ...

View answer
2 answers
3 votes
2k views
Easy workflow for migrating home folders (from clients to OS X server)?
2 votes

Accounts won't translate over easily; you'll have to create a new account for the user on the Xserve. However, that's easier than having to re-create the data. There's really nothing too special ...

View answer
5 answers
7 votes
2k views
macports vs fink
13 votes

I used Fink for quite a while. One day, I tried out MacPorts, and never switched back to fink. I found (subjectively) that the packages in MacPorts were kept more up to date, and had fewer ...

View answer