Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: hdiutil compact : crontab




On Jul 1, 2009, at 3:18 AM, Graham Lee wrote:

On 01/07/2009 08:55, "Ashwin Patil" <email@hidden> wrote:



"hdiutil compact -stinpass /Volumes/Images/test.sparseimage <
/Volumes/Images/passwordfile.txt"

It work as expected but we need to maintain the password in plain text in
the passwordfile.text. But however it solved my task to complete.


Thanks to all, any way please post if any secure method instead of maintains
the password file.



Hi Ashwin,

there's a clear case of the chicken and the egg there. Let's say you store
your password in an encrypted fashion, say in the keychain. How does your
script get access to the password? By having access to the keychain, which
means it needs to be told what they keychain password is....oh. You still
need to give it a password.


You could obfuscate the password stored on disk, but then anyone who can see
the crontab can see how to recover the password. Your choices really are to
give the password text file the minimum FS permissions required to work (and
choose how to secure physical access to the system/HDD as you see fit), or
not automate this task.

You could avoid keeping the password on disk if you were using a remote key server that your script could poll the key from; either using an http server or something like PKS. At least then your data would be protected if someone were to steal the disk.


	- .Dustin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >Re: hdiutil compact : crontab (From: Graham Lee <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.