Slashdot Mirror


Encrypting a User's Home Directory Under Mac OS X

jnetsurfer writes "A friend of mine challenged me to see if I could place a user's home directory on a device image (DMG) under Mac OS X. Well, I decided to post my solution to the problem on the web and here, in case anyone is interested. This can be useful if you want to encrypt a user's home directory, or if you wanted to limit a user's home directory to a certain size."

87 comments

  1. Interesting by Anonymous Coward · · Score: 0

    Is there also a way of encrypting individual folders (to hide the pr0n).

    1. Re:Interesting by djward · · Score: 2, Funny

      Heh. Yeah, just keep the pr0n in an encrypted DMG instead of a folder, and, er... MOUNT it when you want it.

    2. Re:Interesting by Anonymous Coward · · Score: 0

      That's what I do.

  2. IN SOVIET RUSSIA by Anonymous Coward · · Score: 0

    DEVICE ENCRYPTS YOU!!!

  3. Cool article--one concern/question: by vegetablespork · · Score: 3, Interesting
    Is the handling of encrypted DMG files part of the open source Darwin, or is it possible that there is a crippling of or backdoor into this encryption that Apple was forced to insert at the behest of some three letter government or four letter lobbying agency, a la Lotus' having fixed part of the encryption key, effectively reducing key length in international versions?

    --

    Call (206) 338-5780 COLLECT for information about a genuine BA, BS, MA, MS, MBA, or Ph.D.

    1. Re:Cool article--one concern/question: by xmath · · Score: 4, Informative

      The DiskImages framework and associated utilities (hdid, hdiutil) are not part of Darwin.

      And sadly the encryption "plugin" is embedded inside the framework rather than being external. So if you'd want to check for backdoors, you'd need to disassmble the whole DiskImages framework (in /System/Library/PrivateFrameworks) and plow through that.

      However, since it does seem use a plugin interface, even internally, it's probably not too hard to locate just the encryption-related parts.

    2. Re:Cool article--one concern/question: by Twirlip+of+the+Mists · · Score: 2, Funny

      This message was brought to you by Citizens Against Black Helicopters and Fluorinated Drinking Water. Fight the future!

      --

      I write in my journal
    3. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0

      This message brought to you by piece-of-shit trolls with no life.

    4. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0

      Hello, pot? This is kettle. You're black!

    5. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0
      Style: 2/10. Execution: 3/10. Originality: 0/10. Overall score: 1.3 (including the judge from SOVIET RUSSIA).

      Better luck next time.

      ~~~

    6. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0

      fucking racist.

    7. Re:Cool article--one concern/question: by plsuh · · Score: 4, Informative

      The underlying AES-128 encryption is part of the Darwin distro. Look in the Darwin sources under:

      src/Security/AppleCSP/AES/

      This still doesn't really address the whole question -- if there's some back door somewhere higher up the stack in the disk mounting code, you won't find it here, but it's part of the solution. Validate the AES-128 code, then treat the encrypted disk image as a black box (using a simple password, without loss of generality) and see if you can decrypt the image by hand or using a util that you write yourself.

      OK, I work for Apple so you really can't fully trust me on this, but I certainly don't know of any intentional back doors in this code.

      --Paul
      psuh at apple dot com
      Curriculum Developer
      Technical Training and Certification
      Apple Computer

    8. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0

      Good thing today is OPPOSITE DAY! My final score: 8.7! WOO! U-S-A! U-S-A!

    9. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0
      Since today's opposite day, that means tomorrow's really opposite day. Sorry 'bout that.

      ~~~

    10. Re:Cool article--one concern/question: by Anonymous Coward · · Score: 0

      I don't think apple employees are generally supposed to make public comments about apple without clearance from the PR people... Didn't Jordan Hubbard just get in trouble for that? And even if you are allowed to, shouldn't there be a disclaimer like "The views represented here are mine and not apple's" or something? If you really do work for apple, and go around posting things like "OK, I work for Apple so you really can't fully trust me on this" under your real name, on Slashdot even, I really don't think you'll be working there for long!

  4. Encrypted files systems... by tvadakia · · Score: 3, Interesting

    This brings up a point. A friend of mine has been researching a way for an entire operating system (a widely used one like MacOS or Microsoft Windows) to use, exploit, and be fully functional on top of a completely encrypted file system. Or, for a file system such as NTFS or HFS+ to reside as a sub-file system, being contained within an encrypted file system, with which if you enter the system with the correct password (or biometrics or card key or combination) you'll enter the system, and the OS which resides on the system doesn't even notcie the underlying encrypted-FS and only sees the contained NTFS/HFS+/etc... Is this possible? If so, how?

    --
    Unique.
    1. Re:Encrypted files systems... by hdurdle · · Score: 4, Informative

      PGP Disk.

      The freeware version is here. I've used it before, and it works like a charm. You create a PGPDisk file on a normal volume - this contains an encrypted disk. You can then "mount" the drive after providing the correct password. I've used it in the past on NT4 and on Win2K to great effect.

    2. Re:Encrypted files systems... by hdurdle · · Score: 3, Interesting

      While I'm thinking about this... you could even run aVMWare virtual machine using a disk image on a PGPDisk encrypted volume. That way you can run any kind of Windows or Linux on a machine where the OS will have no clue that it's entire underlying file system is encrypted.

    3. Re:Encrypted files systems... by xmath · · Score: 3, Informative

      Note that on MacOS X, using disk images like the author of the article described is *exactly* like using PGPdisk, except PGPdisk is cross-platform and perhaps more trustworthy since its source is available for auditing.

      Using OSX' diskimages however is free-as-in-beer, and probably a bit more flexible. Can you even mount a PGPdisk from the commandline on OSX ?

    4. Re:Encrypted files systems... by xj9000 · · Score: 1
    5. Re:Encrypted files systems... by battjt · · Score: 3, Informative

      It's been done on shrink wrapped secure laptops running Linux/VMWare/W2K. The user only sees W2K, but everything is running in a vm on secure Linux.

      I doubt that it is worth the trouble though. You generally only need to encrypt data, not executables.

      Joe

      --
      Joe Batt Solid Design
  5. limit a user's home directory to a certain size ? by snowtigger · · Score: 1

    I'm sure there must be a better solution to introduce quotas on user directories.

    At least Apple must have thought of this when creating os x server. And if it's in the server version, it should be easy to put in the standard edition.

  6. Re:limit a user's home directory to a certain size by snowtigger · · Score: 5, Informative

    Here we go, I found these unix commands in OSX 10.1.5:

    man quota
    man quotaon
    man quotacheck

    I have been using different encrypted file systems on Linux, mostly using the twofish algorithm. Basically, I think there are two major purposes of crypted file systems for the average geek:

    1) You've got some REALLY secret information which you'd like to protect: use an encrypted file.
    2) You would like to protect the information in case someone steals your computer.

    In my opinion, crypting the whole system doesn't really make sence unless you're afraid of someone coming to take your computer away from you: To use the computer, you have to unlock these filesystems anyway and an intruder will be able to read your files at that time ...

    Also, encrypted filesystems heavily slows down the system, since every read/write to disk needs some CPU. I remember getting pretty poor transfer rates, which is the reason I don't use it anymore.

  7. Linux by Per+Wigren · · Score: 0, Troll

    I'd love to see a Linux-version of this howto! ;)

    --
    My other account has a 3-digit UID.
    1. Re:Linux by snowtigger · · Score: 3, Informative

      Here you go, this HOWTO is even more complete than the article referenced for Mac OS X.

      http://weigand.home.texas.net/efs.html

      Of course, there are Linux distributions that does it out of the box. I use Suse that does this just fine ...

    2. Re:Linux by Per+Wigren · · Score: 0, Troll

      Thanks a lot!

      --
      My other account has a 3-digit UID.
  8. So how strong is AES-128? by ubiquitin · · Score: 3, Insightful

    According to this helpful how-to, you use the Disk Utility to make an image using AES-128 encryption and then you store your home directory on that image.

    The NIST has a white paper on AES which announces that the Rijndael method was the official AES algorithm and that Rijndael is designed with some flexibility in terms of block and key sizes.

    Apparently 128 bit AES allows for a possible 3.4 x 10^38 possible keys which (correct me if I'm wrong here) puts it somewhere between DES and triple-DES. (?)

    Can any Mac users comment on the limitations that are imposed on your choice of a passphrase?

    Basically, I'd like to know how strong a method is this. Is it keep your little sister from reading your diary encryption, or more along the lines of if the Feds busted you they couldn't crack open your data with any computers due out in ten years type of encryption.

    --
    http://tinyurl.com/4ny52
    1. Re:So how strong is AES-128? by cbiffle · · Score: 3, Informative

      128-bit AES allows for 128-bit keys, so yes, in decimal, 3.4e38-somethingorother (2^128). Yes, this is a greater range than DES (2^56). It's also greater than 3DES using two keys (one for the first and third stage, one for the second, so 2^112). Proper 3DES implementations use three independent keys for an effective keyspace of 2^168.

      However, the keyspace of an algorithm is only one of its strengths. It's only relevant if brute force is the fastest way to crack the cipher, which is very rarely the case. In the case of DES, it was refined by the oft-maligned NSA to resist differential cryptanalysis, leaving it resistant against all but brute-force until linear cryptanalysis was 'discovered' in the mid-90s. (To those who still believe the NSA weakened DES, go read your Schneier.)

      AES-128 is a new algorithm, but feels good. Brute-forcing a 128-bit keyspace would take several centuries, even taking into account Moore's law, so the difference between it and 3DES's 168 bits isn't relevant. Moreover, there are known exploits against 3DES (even if they aren't terribly helpful), whereas massive scrutiny by cryptanalysis worldwide (while Rijndael was becoming AES) has turned up nothing so far. This doesn't mean there won't be exploits, but it means that the chances that Shamir or one of the other hotshot cryptanalysts is going to bring out a paper tomorrow that invalidates all your work are very small.

      So: AES-128 will keep your sister from reading your diary. Unless you believe the NSA has some sort of amazing quantum computing that's forty years beyond consumer tech (which I really, really don't), AES-128 is also likely to keep your files safe from the gimmies for several decades.

      Although why the NSA would be interested in, say, my homedir, is beyond me -- the most likely person trying to crack my encryption is probably a jealous girlfriend. :-)

    2. Re:So how strong is AES-128? by scrod · · Score: 1
      Moreover, there are known exploits against 3DES (even if they aren't terribly helpful), whereas massive scrutiny by cryptanalysis worldwide (while Rijndael was becoming AES) has turned up nothing so far. This doesn't mean there won't be exploits, but it means that the chances that Shamir or one of the other hotshot cryptanalysts is going to bring out a paper tomorrow that invalidates all your work are very small.


      Well, I wouldn't be so sure about that.
      http://www.counterpane.com/crypto-gram-0209 .html
    3. Re:So how strong is AES-128? by Anonymous Coward · · Score: 0

      It's twice as strong as AES-127!

    4. Re:So how strong is AES-128? by Anonymous Coward · · Score: 0

      In a private conversation with Dame Pauline Neville-Jones, the former head of Britain's Joint Intelligence Committee, she confirmed to me that current forms of encription available to the public can be cracked, but it is, in her words "expensive". To put her authority to comment into perspective, the post she occupied is the equivalent to the US DCI, or Director of Central Intelligence.
      She is likely to know - the UK provides one hell of a lot of SIGINT to the NSA.

  9. Ditto... by TiMac · · Score: 4, Informative
    In the steps listed to change the home directory to the encrypted disk...a given step (#6) says to use "sudo cp -R /Users/USERNAME /Volumes/VOLUME-NAME/" to move the current home directory. But this will not properly copy resource fork files, so some files and programs would break...so most likely you would want to use

    sudo ditto -rsrcFork /Users/USERNAME /Volumes/VOLUME-NAME/

    instead, which maintains the Resource Fork information.

    --

    1. Re:Ditto... by TiMac · · Score: 5, Informative
      Actually,

      I just realized that because of a behavior of ditto, you'll want it to be:

      sudo ditto -rsrcFork /Users/USERNAME /Volumes/VOLUME-NAME/USERNAME

      Sorry for the little oversight :)

      --

  10. Do it automatically? by xmath · · Score: 1

    The only thing that sucks about this scheme is the elaborate procedure necessary to login as this special user (first login as admin and manually mount the encrypted homedir)

    I wonder if it's possible to write a Login Plugin to automatically mount the encrypted homedir using the password entered by the user. That would make the system completely transparent, while still being secure (assuming the password is good): If someone uses any other means (= security hole) to gain access to the account, the system won't have the password it needs to decrypt the homedir, so even gaining root access wouldn't help.

    (This would be very similar to the way Keychains are already handled: if your login password is equal to the passphrase of your default keychain, it is automatically unlocked when you log in)

    1. Re:Do it automatically? by mac-diddy · · Score: 2, Interesting
      What about a LoginHook?

      The LoginHook is run as root and is passed the user name as $1. We use it to create dynamic AFS mounts on login now, so I don't see why it would work in this case.

    2. Re:Do it automatically? by TiMac · · Score: 2
      Is this an Apple feature, these LoginHooks, or are they provided elsewhere? I've never heard of them...do you have any documentation info online...I know some parties who would be greatly interested in having this info for AFS mounts.

      Thanks.

      --

    3. Re:Do it automatically? by mac-diddy · · Score: 2, Informative
      From what I've read, this is a NeXT feature that Apple was smart enough to keep around.

      Apple hasn't written too much, but they do have this doc.

      Also, macosxlabs.org has written a doc that fills in some gaps. If you are going to be doing a lot during login/logout, you might want to checkout iHook from the University of Michigan. It's a great little tool that give a GUI to boring old shell scripts.

  11. Compress the user directory... by Asterax · · Score: 1

    Mac OS X takes it's usual theme of 'smaller is better' to a whole new level. Heh.

  12. OK It's strong. by ubiquitin · · Score: 3, Informative

    I kept reading and found the answer to my own question: in the late 1990s, specialized "DES Cracker" machines were built that could recover a DES key after a few hours. By trying possible key values, the hardware could determine which key was used to encrypt a message.

    Assuming that one could build a machine that could recover a DES key in a second (i.e., try 255 keys per second), then it would take that machine approximately 149 thousand-billion (149 trillion) years to crack a 128-bit AES key. To put that into perspective, the universe is believed to be less than 20 billion years old.

    --
    http://tinyurl.com/4ny52
  13. Not fast by SiMac · · Score: 1

    There's one major problem with Apple's encrypted disk images: speed. Playing an MP3 off of an encrypted disk image takes 10%+ of the CPU time on my iBook/600.

    1. Re:Not fast by Pfhor · · Score: 5, Insightful

      Why would you be storing your mp3s on an encrypted disk?

      I would think personal financial documents and porn would be much more important. Of course mpeg playback would be hindered, which would be a problem.

    2. Re:Not fast by vasqzr · · Score: 0, Offtopic



      My system:

      Windows 2000
      Pentium II 400MHz
      256MB RAM

      149 MP3 files, 568MB

      I encrypted the entire folder from Windows Explorer. It took just over 3 minutes.

      Next, I fired up WinAmp. Playing music hovers between 0% and 2% according to Windows Task Manager.

      From the start of the process, I had 1 PuTTY window, 4-5 Internet Explorer windows, AIM, and IRC clients running.

      An MP3 player shouldn't have to encrypt/decrypt the file 'on the fly', it should read the whole 3MB-5MB of the MP3 and just store it in RAM.

      An encrypted file system shouldn't be hurting MP3 playback much. Database access on the other hand...

    3. Re:Not fast by vasqzr · · Score: 2, Insightful



      When the RIAA/MPAA/whoever carts your ass off to jail for having MP3's of songs you don't own the CD's to....you'll wish you had encrypted your music.

  14. Re:Another CmdrTaco shill for Steve Jobs by Anonymous Coward · · Score: 0

    Er... I fail to see how this was a "shill" for Mr. Jobs, but anyway: you got a problem with Apple, don't read the Apple section of Slashdot. And if you've got a problem with Slashdot, don't hang out on Slashdot. Pretty simple, eh?

  15. Encrypting porn ? by snowtigger · · Score: 2, Insightful

    Why would porn be 'important' enough to encrypt ? If you're trying to hide the fact that you're watching porn on your computer, you'll have to hide all history files, logs, etc too since these probably reside in a non-crypted area.

    (Of course, this is only general thoughts and not a personal attack on the poster. I encrypt my financial information too ...)

    1. Re:Encrypting porn ? by Pfhor · · Score: 2

      Very true.

      I was just joking on what some people would consider "important documents".

    2. Re:Encrypting porn ? by Anonymous Coward · · Score: 0

      It's not importance, it's prudence. If you use a newsreader, say, to download all the porn images from alt.binaries.hotbabes, you end up with a broad assortment of images, many of which are not in fact hot babes.

      In particular, if someone posted some kiddie porn to that newsgroup, it is now on your hard drive. And you don't even know it.

      Now postulate that you work on something like DeCSS. Or maybe you've been giving tips to Amnesty International. One way or another, somebody gets a subpoena for your hardware.

      They go through it and decide that, while they've got no legal leg to stand on with regard to the original subpoena, they might as well tell the FBI that you're a child pornographer.

      Bing! Jail time!

  16. What's the point? by zzen · · Score: 2, Interesting

    Maybe I am missing something, but I don't see a point in doing this. As the hint is described, it is apparent the image is mounted permanently, even after the users log out. It is mounted by root.

    I don't see how this can make things more secure - since anybody with proper permissions can access the contents of the mounted image via the mount point just as well as when the data was in /Users.

    It would make some sense if the image would be mounted only at login (and unmounted at logout), but this is not possible with this hint either. Out of top of my head, I can't think of a way to do this.

    1. Re:What's the point? by mac-diddy · · Score: 2, Interesting
      In conjunction with a LoginHook to mount the drive, you could use the LogoutHook to unmount it. You could even write the script to make sure that only drive X is made available to user X.

      That way, you, your S.O. and the kids could have their own private porn collections.

  17. Re:Another CmdrTaco shill for Steve Jobs by Anonymous Coward · · Score: 0

    also please keep in mind that Apple is now greatly supporting open source and is contributing wonderful technology and the type of development that only a multi-billion dollar multinational company can muster. so stop bitching.

  18. What I meant was... by tvadakia · · Score: 1

    I was thinking more of something that would encrypt the OS partition as well, and the OS could boot from the encryption scheme without hassle after the correct password (or whatnot) is put in. So, even the OS would be fully encrypted if the HD was taken out and put into another computer. All a person would see is encrypted files, no more.

    --
    Unique.
    1. Re:What I meant was... by commodoresloat · · Score: 2

      Why do you really care about encrypting the OS? Seems a waste of time and CPU, to decrypt the OS just to use it. The important thing would be to encrypt the important data, which would be in the home directory.

    2. Re:What I meant was... by mikiN · · Score: 1

      Why do you really care about encrypting the OS?

      Encrypting the OS should prevent someone with physical access to the disk it is on from tampering with it without you noticing.

      Think of someone somehow inserting password-snooping software into the OS (temporarily installing the disk in another computer if needed), waiting for you to access your encrypted files, then returning to snag your files using your very own perfectly valid passwords...

      Seems far-fetched? This very scenario occurred at a University computer lab, forcing sysadmins to install hardware encryption devices in all the PC's...

      --
      The Hacker's Guide To The Kernel: Don't panic()!
    3. Re:What I meant was... by alyandon · · Score: 3, Informative

      NTFS 5 (in 2000 and XP) supports transparent encryption of entire volumes which might be what you are looking for. I'm not sure if you can encrypt the entire boot partition or not as I'm not interested in that level of security. Unfortunately, if you encrypt data you lose the ability to use NTFS's transparent compression.

    4. Re:What I meant was... by commodoresloat · · Score: 2

      That sounds like a good reason to not allow changes to the OS but not for full encryption, unless I'm missing something. Our university labs do not have encrypted OS's, but in many of them there are non-public areas of the hard drive that are wiped and replaced each night from a disk image.

    5. Re:What I meant was... by bastion_xx · · Score: 2

      Well, in the Windows world, users have a habit of storing data files..... everywhere. There are some good encyrption programs out there that encrypt/decrypt at the sector level such as DriveCrypt. Personally, I'd rather buy laptops with a couple hundred extra Mhz rather than lose a laptop with sensitive information. For OS X, GPG does me fine for those files I deem truly sensitive (of course, my Mac is a personal use only machine--not allowed on the corporate network).

  19. Exisiting scripts by awtbfb · · Score: 1


    Roger Jolly's Encrypt and ".secret" scripts in AEP and the Mac OS X Encoding Plethora seem to have similiar functionality. I'm guessing these tools will not hide your directory structure or file names, but if I'm not mistaken, they will encrypt the individual files in semi-transparent manner.

    Does anyone have experience using these? Is the encryption function useful?

  20. Think different -- a better way to do it by plsuh · · Score: 5, Informative
    This is actually something that is covered in the new Mac OS X Administration and Integration sysadmin technical training course from Apple that will be going live in January. As the author of that section of the course, let me give you a bare bones outline here.
    1. Log in as the user whose files you want to secure.
    2. Create an encrypted disk image using Disk Copy at the top level of the user's home directory. When it asks for the disk image password, be sure that the "remember password" option is checked -- this saves the disk image's password on the user's default keychain.
    3. Use ditto to copy over the following directories from the user's home folder onto the encrypted disk image:
      ~/Desktop
      ~/Documents
      ~/Library/Mail
      ~/Applicat ion Support/Addresses
      ~/.ssh
      These are the important ones; you can copy over other items as well, but definitely don't do the entire ~/Library folder, and don't do the ~/Library/Keychains or ~/Library/Preferences folders.
    4. Set the disk image to automount on login by dragging it into the Login Items preferences pane.
    5. Use mv to shift the directories aside (e.g. mv ~/Documents ~/Documents.save) and set up symlinks onto the disk image (e.g. ln -s /Volumes/Secure/Documents ~/Documents).
    6. Log out and log back in again. The disk image will be automounted at login, using the password stored on the default keychain which also unlocks on login. Everything should just work! :-D
    7. Now for the housekeeping: delete the .save directories you created earlier, and be sure to turn off automatic login in the Accounts preferences pane.
    Why do it this way instead of the way that Joshua Gitlin wrote up? First, you don't need admin access to a machine to make it work. You may not have admin access on a company machine, or as a sysadmin you may not want to give admin access to most of your users.
    Second, using Joshua's method, once the disk image is mounted it's open to anyone who has admin access on that machine, whether or not you are logged in at the console. By using an automounted image with the password stored on the keychain everything is secure until you actually log in, and everything is secured once you log out.
    Third, this way is a lot more convenient. If you make security too inconvenient, users will circumvent it. Instead of two logins, you only have to do one. Techincally unsophisticated users (secretaries, lawyers, vice-presidents, etc.) don't need to do anything different.

    <BLATANT PLUG>
    Go to Apple Training and sign up for a course or two. They're well worth the money and help me keep my job. :-D
    </BLATANT PLUG>

    --Paul
    psuh at apple dot com
    Curriculum Developer
    Techincal Training and Certification
    Apple Computer
    1. Re:Think different -- a better way to do it by 73 · · Score: 1
      This is cool. Thanks! One question I've had with using disk images for anything is that I have to declare the size of the volume at creation. What happens after I exceed the image size limit? Can it be setup to dynamically resize as I add more data?

      Apologies in advance if this is a newbie question that I should know.

      -73 because it's about prime.

    2. Re:Think different -- a better way to do it by tbmaddux · · Score: 3, Interesting

      Since you're putting the password in the keychain, and most user passwords are the same as their keychain passwords, doesn't this present a potential weak point? (I've often read not to put AES-128-encrypted .dmg passwords into the Keychain) How secure is the password database in MacOS X?

      --
      Can't you see that everyone is buying station wagons?
    3. Re:Think different -- a better way to do it by alyandon · · Score: 2

      My friend does something similar on his iBook and runs into one problem on a fairly regular basis. Certain installers will remove the symlink to his Applications directory and replace it with a regular directory. No workaround other than recognizing that this occasionally happens and moving the new application over and recreating the symlink.

    4. Re:Think different -- a better way to do it by bailey34 · · Score: 1

      What you say is true, but not strictly relevant to this discussion. You aren't creating a symlink to the Applications folder, you're leaving that where it is. The links you are creating are in a specific user's home directory. AFAIK, no installer will be delving here.

    5. Re:Think different -- a better way to do it by avendasora · · Score: 1

      If you install Microsoft Office v.X as a non-admin user, it does NOT ask you for a password, it just creates and installs Office in an Applications directory INSIDE the user's home directory.

      Leave it to Microsoft to "extend" the concept of a home directory.

      I haven't run into any other installers that use/create a ~/Applications directory, but you never know...

    6. Re:Think different -- a better way to do it by bdash · · Score: 1

      From memory, the official ICQ client installs into ~/Applications.

    7. Re:Think different -- a better way to do it by bailey34 · · Score: 1

      I wasn't aware of either of these, but then it's only Apple's installation packages that have been causing this problem isn't it?

    8. Re:Think different -- a better way to do it by entrylevel · · Score: 2

      Leave it to Microsoft to "extend" the concept of a home directory.

      Leave it to Slashdotters to "extend" Microsoft-bashing into realms in which it has no business. ~/Applications is one of OS X's standard application directories, as well as /Applications, /Network/Applications, and /Developer/Applications.

      --
      Karma: Incomprehensible (Mostly affected by posting at +5, reading at -1, and metamoderating everything unfair.)
    9. Re:Think different -- a better way to do it by plsuh · · Score: 3, Insightful

      On Mac OS X, the password is stored as a standard Unix-style crypt hash with eight significant characters. It's no more or less secure than most other Unix-style systems that use this system -- this is reasonably secure if you use a solid password. Upper and lower case, numbers, punctuation, etc. I'd personally prefer that it take into account more significant characters, but "this will be covered in a later release". Using the OpenLDAP-based password server from Mac OS X Server gives you 255 significant characters via SASL, but this isn't usable in the case where you want encrypted disk images the most, on a laptop away from any network.

      A pretty good way to make a difficult to crack but easy to remember password is to string together two words with some punctuation in between. E.g., my old (now defunct, so don't bother trying it) Compuserve account password, "knife:other". On Mac OS X, this reduces to "knife:ot" which is easy to remember but hashes to something pretty difficult to crack by brute force.

      --Paul

      Curriculum Developer
      Technical Training and Certification
      Apple Computer

    10. Re:Think different -- a better way to do it by Anonymous Coward · · Score: 0

      Well then, go to your other *nix systems and replace "nidump passwd ." with "cat /etc/passwd" and you get the same effect.

      They are both equally secure. The security isn't from inaccessibility of the database, but in the strength of the hash.

    11. Re:Think different -- a better way to do it by tbmaddux · · Score: 2
      On Mac OS X, the password is stored as a standard Unix-style crypt hash with eight significant characters. It's no more or less secure than most other Unix-style systems that use this system...
      AFAIK other Unix-style systems are using more than 8 characters, but let's ignore passwords for a moment because we're talking about something else.

      My PowerBook G4 has 26 letters, 10 numbers, and 11 other characters I can type, for a total of 47. With the shift key, that's 94. Even if we charitably assume a strong password, 94^8 combinations is only 6.1e15, which is slightly worse than 53 bits of entropy.

      So by putting the password in the keychain, even if it is a good one (and quite often it is not), we are left with a disk image which is less protected than conventional, weak 56-bit DES encryption.

      --
      Can't you see that everyone is buying station wagons?
    12. Re:Think different -- a better way to do it by Anonymous Coward · · Score: 0

      No, he's right. It is really fucking annoying that Microsoft does the install in this way so it can trick non-technical users into believing they have to buy a separate copy of Office for each user of the machine. Fuck that. (And fuck you for defending it.)

  21. Encrypted disk image access speed by plsuh · · Score: 5, Informative

    One more thing -- people have been commenting/asking about the speed of access. The algorithm for AES-128 on MOSX 10.2 has been heavily optimized. There is basically little or no additional overhead when using an encrypted disk image vs. an unencrypted disk image.

    --Paul

  22. Well, what do you expect? by Anonymous Coward · · Score: 0

    Slashdot has jumped the shark. News at 11.

  23. Linux related questions.... by Anonymous Coward · · Score: 0


    (I don't mean to hijack the thread)

    What's the best way to encrypt home directories under Linux? (or another UNIX work-alike, since this method is very OS X-specific)

    Also, are there 'disk images' in Linux? Transparent ways of mounting one large .img file as a regular filesystem?

    1. Re:Linux related questions.... by user+no.+590291 · · Score: 1

      Googling for "Linux loopback filesystem" yields this article.

    2. Re:Linux related questions.... by nullard · · Score: 1

      I've used loopback a few times under Linux. Is there any way to do the same on OS X? There are no /dev/loop* devices. Would a kernel module need to be written to support them or are they disabled somehow?

      I want a completely OSS solution to mounting disk images so that I can use my linux scripts on my mac and not have to use Disk Copy.

      --


      t'nera semordnilap
    3. Re:Linux related questions.... by user+no.+590291 · · Score: 1

      Not sure, I haven't looked into it yet--it would at least require a BSD loopback driver, and probably compiling your own Gnu/Darwin.

  24. Nice hack by little_fluffy_clouds · · Score: 1

    That's a nice hack indeed. Now let us look at a better solution from NetBSD (only in -current at this stage, will be part of 1.7/2.0, whichever it ends up being called):

    http://netbsd.gw.com/cgi-bin/man-cgi/man?cgd+4+Net BSD-current.

    and the config utility:

    http://netbsd.gw.com/cgi-bin/man-cgi?cgdconfig+8+N etBSD-current

    --
    What were the skies like when you were young?
  25. Free? by Anonymous Coward · · Score: 0



    Free-as-in included with OS X

    Windows Solitare isn't free-as-in-beer

  26. Probably not by FredFnord · · Score: 1

    Remember that you're asking for a user interface here: the password for the disk needs to be requested. I don't think you can do that from where you're at, before the start of the user login process.

    --Fred

    --
    Sign #11 of Slashdot overdose: You see the phrase 'moderate Republican' and you wonder if that would be a +1 or a -1.
  27. Corrupted Disks by numpins · · Score: 1

    Are there any recovery options for corrupted disk images? Losing all my information would be a ... bummmer ...

    Although the disk image will be completely secure if you can't get any files off of it...

  28. Re:Another CmdrTaco shill for Steve Jobs by entrylevel · · Score: 2

    Uh...Taco and Hemos sold out *long* before they go top-of-the-line-last-tear TiBooks. If you don't like the Apple topic, remove Apple from your list of displayed topics. Better yet, don't visit apple.slashdot.org, since this story was *only* posted there.

    --
    Karma: Incomprehensible (Mostly affected by posting at +5, reading at -1, and metamoderating everything unfair.)
  29. Command line access by bleyddyn · · Score: 1
    I've never been able to mount an encrypted disc image from the command line unless I'm logged into the UI (i.e. logged into OS X normally).


    For example if I ssh into my home machine I get an error:


    hdid -passphrase "mysecret" somediscimage.dmg

    hdid: mounting somediscimage.dmg" failed: no mountable file systems.


    This disc image works just fine if I do the same exact thing while logged in locally.

    1. Re:Command line access by hanchenson · · Score: 1

      Check out AppleCare document 106931

      If you are logged in remotely and there is no one on the console, you need to issue the following command:

      disktool -c

      before using "hdid" to mount the disk image.

      Alternatively, you could use "hdid -nomount" and then manually mount the appropriate /dev/disk node.

  30. Offtopic?! by Anonymous Coward · · Score: 0


    This can't be any more ON TOPIC!

    WTF

  31. Encrypt the drive because of the VM swap files by Anonymous Coward · · Score: 0

    This is why someone might consider encrypting the drive or partition. Memory contents: PGP keys, keychain key etc, could easily end on the drive in clear form. Apple need to consider adding something like TCFS to the FS options.