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



Hi, All

I could able to solve this here.



USSAGE :



"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.



Regards

Ashwin Patil




----- Original Message ----- From: "Ashwin Patil" <email@hidden>
To: "Graham Lee" <email@hidden>; <email@hidden>
Cc: <email@hidden>
Sent: Wednesday, July 01, 2009 10:32 AM
Subject: Re: hdiutil compact : crontab



>expect that as your cron job isn't running in your login context, it >can't
access your keychain to get at your password.

Thanks may be you are true. The cronjob is not able to get the password which hdiutil is expecting to open the sparse image. Now how do I pass the password to this script instead of getting it from the keychain? I think it should be possible.




Please....



Ashwin Patil


----- Original Message ----- From: "Graham Lee" <email@hidden>
To: "Ashwin Patil" <email@hidden>; <email@hidden>
Sent: Tuesday, June 30, 2009 8:35 PM
Subject: Re: hdiutil compact : crontab



On 30/06/2009 14:21, "Ashwin Patil" <email@hidden> wrote:

Hi all,

I have small issue here. I created a sparse image of 600 GB which is
securing password protected. Now my query is I am using "hdiutil compact
<path_to_sparse_image_file> " to reclaim the unused free space. This command
works fine when I run this manually, but fails to reclaim the free space if
I run this through cron entry. Also no any error message it displays. But
bit difference in the log, it says


Initializing.......

Attaching........

Finishing.........



But when I run manually it says,

Initializing.......

Finding free space............

Reclaimed 12 %

Finishing..................



Any idea why it is happening...? Any way that I run this through cron entry
everyday....?



Did you save the password in your keychain? I've seen that if I don't,
hdiutil compact can't compress the DMG without prompting for my password. I
expect that as your cron job isn't running in your login context, it can't
access your keychain to get at your password.


Cheers,
Graham.
--
Graham Lee
Senior Mac Software Engineer

tel: +44 1235 540266
SOPHOS - simply secure



Sophos Plc, The Pentagon, Abingdon Science Park, Abingdon, OX14 3YP, United Kingdom.
Company Reg No 2096520. VAT Reg No GB 348 3873 20.


-----------------------------------------------
Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
_______________________________________________
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


----------------------------------------------- Robosoft Technologies - Come home to Technology

Disclaimer: This email may contain confidential material. If you were not an intended recipient, please notify the sender and delete all copies. Emails to and from our network may be logged and monitored. This email and its attachments are scanned for virus by our scanners and are believed to be safe. However, no warranty is given that this email is free of malicious content or virus.
_______________________________________________
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


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.