How do I get an encrypted dmg on a network share to automatically mount at login?

I need to mount an encrypted dmg that is stored on an SMB share to automatically mount at login.  I've got the SMB share to mount at login as a "Login Item," but I can't get the encrypted dmg to mount.
A related question:
I've got a shell script that mounts my encrypted image, copies data using rsync, and then unmounts the encrypted image.  I tried automating this using a cronjob, but cronjobs are nut run as $USER.  Since the cronjob isn't run as $USER, the cronjob does not have access to the $USER's keychain and cannot authenticate to the encrypted dmg.  Any tips on getting either of these to work?

I don't use SMB so I'm not sure whether this will work, but try it. Open a TextEdit window and type something like this:
smb://user:password@server/path-to-file
Make the obvious substitutions in the text, then select it and drag it to the Desktop. You should get a bookmark file. Double-click it to test. If it works, you can rename the file and put it anywhere you like. Add it to your login items.
If the above doesn't work, try again with "cifs" in place of "smb".
The "user:password@" part may not be necessary if the password is in your keychain.

Similar Messages

  • I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion

    I have the new 2011 macbook pro, with lion preinstalled. I want to change the harddrive. I have backed up everything on time machine. when i put my new blank hard drive in will the lion screen startup.How do i get the lion dmg when i am already using lion

    NicholasLiban -
       When you use the Lion restore as described, it does a fresh install on the hard drive that you can select at the beginning of the process.  This provides a complete install of the very latest version of Lion, including the recovery partition.  The drive that you choose for the installation destination winds up like what you would have on a brand new computer from Apple. 
       - Randy

  • HT201269 how do I get the encrypt iPhone backup password? I'm trying to restore my phone and its asking me enter the password to to unlock your iPhone backup

    how do i get the encrypt iphone backup password??

    Tips here:
    http://support.apple.com/kb/TS5162
    If the backup you're trying to restore from is encrypted, you will not be able to use that backup if you can't remember the encrypted backup passcode.
    If on a Mac, & you elected to save the passcode to your Keychain, you can recover the passcode from your Keychain. Otherwise, your backup data is unrecoverable.
    While you can continue to sync/backup, if you can't remember it & want to remove it, you'll have to delete your existing backups, & restore your phone as a new device. Your data will be unrecoverable.
    You delete your existing backups here: iTunes>Preferences>Devices.

  • How do I get mail on my iPhone and computer to sync automatically, so e.g. messages read on one appear read on both?  I am working in VN and the microsoft access server is in the USA.

    How do I get mail on my iPhone and computer to sync automatically, so e.g. messages read on one appear read on both?  I am working in VN and the microsoft access server is in the USA.

    If you created as an Exchange account on the iPhone (not IMAP or POP) and you have Push on it should all work smoothly; Reading a message on either client should mark the other read (it does on mine). Try deleting the account from the phone, rebooting the phone (to clear out old settings), then go to Settings/Mail,Contacts,Calendar, add an account and tap Microsoft Exchange and add the account back.
    There is a fundamental difference between BB and iPhone that you should be aware of; on the BB you do not sync directly with Exchange; you sync with the RIM server which then syncs with your Exchange server. The iPhone syncs directly with Exchange using Microsoft's ActiveSync protocol. So in some ways they will behave differently. But ActiveSync should manage marking messages as read correctly.

  • How do i get music on my ipod through home share

    How do i get music on my ipod thorugh home share?

    Welcome to the Apple Community.
    You can only home share content from a computer.

  • I want to buy an ipad 2 3G but i am not a US resident, how can i get to work on a local network NOT verizon or AT

    i want to buy an ipad 2 3G but i am not a US resident, how can i get to work on a local network NOT verizon or AT&T

    From your screen name would it be safe to guess that you will be using it in Egypt? If your carrier uses is a GSM network you can do as Chris suggests.
    From the Apple page http://www.apple.com/eg/buy/   there is a link to Arab Buisness Machine, they sell the iPad 2 and offer local support should any problems arise.

  • What does unencrypted mean? It always warns me about this. How do I get Firefox encrypted?

    Before I can use Mozilla firefox, this prompt comes up...this site is unencrypted and it is very likely that a 3rd party can get information, what does this mean, unencrypted? Can I get firefox encrypted?

    Do you have the Google Toolbar installed?
    See:
    * http://www.google.com/support/toolbar/bin/static.py?page=known_issues.cs

  • In mail how do I get the latest entries to appear at the top automatically, at the moment I have to move the cursor from the bottom to the top to read the latest email?

    In mail how do I get the latest emails to appear at the top of the column automatically. At the moment I have to scroll up from the bottom oldest entires to find my latest mail arrivals

    What device are you using?
    I assume you are talking about something other than the iPad?
    Is there a sort order above the date column? Clicking on this can switch between Ascending and Descending order.

  • How can I get multiple users to be able to share the music on iTunes? I've tried Home Sharing, but it does not work properly.

    How can I get home sharing to work on my mac mini for multiple users? It says it is working, but it never shows up in the left hand column.

    Gino Cerullo,
    Thanks for your response. I tried all that myself. In fact, last night, it all worked fine on all users. This morning, no Home Sharing would show up. It is really weird because some setting must have changed, but I did not knowingly changed anything, and now all the obvious fixes don't work. In fact, if I turn off Home Sharing and turn it back on, then it comes up only until I hit the "done" button on the set up page and then it goes away from the left hand column again. The ADVANCED drop down tab says it is on, but it is not there.
    Thanks anyway.
    Edzell

  • How can I get AirPlay mirroring to fill widescreen? It works automatically for apps built for apple tv, but not Hulu Plus, for example, which letterboxes.

    Airplay mirroring works great for apps (mostly video-related ones) with native Apple TV support, but for other apps - most notably Hulu Plus, it will only show letterbox on my 16:9 plasma TV. Again, my movies, tv shows and in-app videos like in CNN where there's a built-in AirPlay support will fill my widescreen, but apps that don't (Hulu Plus, games, photos) will not. Do I have to change the aspect ratio on the tv to 4:3? Will changing the resolution help.
    How can I get mirroring to fill the entire tv screen, regardless of the app? Thanks.

    Guys. Let's not get confused here.
    -AirPlay mirroring feature 'mirrors' what's on your iPad 2 or above or your iPhone 4s on to your big TV via the Apple TV black box.
    -Video apps that stream video (like native YouTube app) uses AirPlay which is different to mirroring.
    -When you use the 'mirror' feature you get black bars all around (left/right & top/bottom)
    -There are Games that use the full screen via the AirPlay mirroring feature and there are games that don't. It depends on the Game. For example download Asphalt 7:Heat and you'll notice you get widescreen display on the big TV but if you play Batman or Max Payne or others that don't support AirPlay mirroring then it you get black bars left and right.
    -What's neat about the AirPlay mirror feature is that when you play Asphalt 7 with 'mirroring' set to on, the race is shown on the TV while your iPad shows something completely different (the route in real time with your rear view mirror)
    -The Apple iPhoto app on your iPhone 4s or iPad 2/3 with AirPlay mirroring feature on you get a different experience. All of a sudden it goes full screen, and you are presented with their iPhoto logo.
    -Those who have the first generation iPad don't have mirroring capabilities so the Asphalt 7:Heat games feature aren't available or the iPhoto app features. With iPad 1 you can only stream video or music or image slideshow (which all stream full screen). iPad 2 and iPad 3 can also do this but with the added benefit of 'mirorring' what is displayed on the iPad screen. Some apps take advantage of this, some don't.
    There are no special setting on Apple TV to get rid of the black bars. You may be able to change the zoom settings on your actual big TV.
    Hopefully this will clear this all up. I have the iPad 1 and recently upgraded to the new iPad 3. I also have an iPhone 4s. Same issues.
    I don't think the AirPlay 'mirror' feature has developed fully yet. It has it's limitations but also has its advantages.

  • When I go to a web page that page appears upper left, filling half of the screen. I have to manually go to View in the menu bar to get it to fill the page each time.  How can I get my Mac Mini to go to full page automatically when I visit a web page?

    When I go to a web page, that page appears upper left, filling only half of my screen top and bottom.  Each time I have to go to the menu bar View and go to full page.  How can I get the web pages to display in the full screen automatically??? This just started happening.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • How do I get my old printer off the network?

    Hello
    I have a Lexmark Z1480 - if I go onto Bonjour I can see the network webpage my my printer configurations...
    I have uninstalled all Lexmark software etc as best I could and that part seems OK...
    There is still however the Lexmark network webpage that my wireless printer was using to print wirelessly on my network...
    How can I get rid of this webpage - I just want shot of it!!
    Many Thanks,
    Mr Totsy

    Ok...here goes...
    Uninstalled all Lexmark drivers, utilities, software junk from the HD...
    Dragged and dropped the ones that didn't go at the 'uninstall' into the Trash...the machine is now completely clear
    When I switch the printer on, the wireless WIFI icon on the side of the printer is still glowing 'green'...
    It is clearly still connected to my wireless network somehow...
    I want to install a new printer onto my network and i'm sure the software that comes with the new printer will allow me to do that no problem...
    When I click on the printers network webpage (click on 'show all bookmarks'; select Bonjour; it's listed below the Bonjour intro page) it has all the settings which allow the printer to work correctly on my home network...
    Here is the million dollar question...how do I delete that page? It is password protected and no doubt it will be difficult to crack, but wouldn't it be much more secure for me if it wasn't there to be cracked in the first place?
    Any help on how to delete the network connection for my printer would be very much appreciated...it is still there after the uninstall process...
    Any and all please wade into the debate...the more help the better...I'm a bit of a luddite when it comes to tech stuff like this...
    There are plenty of Mac Experts who could give me a hand here !!!!!
    Many Thanks,
    Mr Totsy

  • I purchased iTunes Match and when applying it to my iPhone, it erased all my music.  I still have the library on my ipad2, how do I get it back on the iphone and share it on the cloud?

    I purchase iTunes Match.  When I applied it to my iphone5, it erased my music library.  Even when I restored my backup, the library was not there.  I still have all of the music on my ipad2.  I thought that iTunes Match would allow me to put my library of music on the new MacBook I purchased last week.  What did I do wrong and how do I get the music onto my MacBook and back onto my iphone?

    For iTunes Match to work, your music needs to be in your iTunes library on your computer.
    Read this Recover your iTunes library from your iPod or iOS device
    jim

  • HT1145 How do I get iPad 2 to remember a network that I told it to forget prior?

    I chose "forget this network" on my iPad, how go I get it to remember that network again. I can see it, and log in- I just have to put a password in each time, kind of a pain... Want it to auto remember password again.

    Hello rdavspencer
    If your iPad is not remembering the password, the following article has a section to help sort out the issue.
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • How do I get windows 7 to Index a network mapped drive?

    I would like to change the location of my lobraries in Win 7 to a network drive but every time I change the location, it says it cannot be used because it's not indexed, so how do I get a network drive to be indexed or if there is a way around it I'd accept that too.

    here's a solution... that indexes the contents of a folder on another networked computer - WITHOUT MAPPING THE NETWORK...
    I don't like to spend a lot of time screwing around with the "mindboggling" os conflict stuff of Microsoft with Windows 7, Vista, xp-pro, etc.
    THIS WORKS FOR ME... but since I'm just an "average user," I can't always explain the "intuitive" computer solutions to problems that I come up with in a sequential "step like" manner...
    This SOLUTION may be useful in resolving other networking conflict issues when you are using various hardware and software.
    The TWO computers I'm using for this example:  a gaming Windows 7 x64 laptop, and an XP-Pro desktop.  (I also have a Vista laptop, and another desktop with XP-home... but I don't use those that often - so I don't really care if this "solution"
    works on those, etc.)
    Anyway, I'll tell you the steps I did, though, I don't really understand "how all this works" - it just does.
    Some points first, before I give you a "step by step..."
    1.  I can always access ALL NETWORK LOCATIONS AND FILES from my "Windows 7 x64" laptop.
    2.  I often can't access all network locations, etc. from my XP-Pro desktop... sometimes I can, but I don't know what I have done to cause this... and it's not to important to me... as long as MY MAIN LAPTOP can access everything on the network all
    the time. (This probably has something to do with WIN 7 being "backwardly compatible" with previous hardware/software like XP but NOT THE REVERSE, etc.  So, whenever I'm doing something "involving my network" ... I try to work "top-down" from the superior
    WIN 7 system, etc.
    OK... here's what I did... "experts" can figure out "if this is useful to you" and whether it has "other potential uses, etc."
    here's a rough sketch of the "problem I was having" and the solution.
    I often jump between two computers on my network... the win7 laptop and the xp pro desktop... and I wanted to have a "notepad file" that I use as a daily "do list," and I wanted to have it's contents change and be in sync, no matter which computer I had
    updated the notepad file on.  Now, I know THAT CAPABILITY is simply a matter of having it shared on the network.  Now I originally created the notepad file on the xp desktop.  Then, I went upstairs and found the shared folder I had put it in
    from the desktop... and, of course, I could "change the contents of the file in sync" between the two computers... 
    Now, the problem came in when (from my laptop I could NOT INDEX the "shared folder on my desktop.")  I tried MAPPING the network drive, and IT WOULDN'T do it...(some kind of issue between win7 and xp, etc.)
    ANOTHER COMPLETELY DIFFERENT APPROACH occurred to me... AND THAT WORKED...so here's what was involved... and it INDEXED THE "SHARED FOLDER ON THE DESKTOP COMPUTER" without "mapping the network."  ...why this works... YA GOT ME... BUT IT DOES!
    HERE'S HOW IT WORKS:  (all below is for WIN 7 X64 networked with older systems like XP... this method may work in other cases, too)
    1.  I created a "notepad" file on my xp desktop.  (called the file "bingo.txt")
    2.  Created a "folder" and named it "bingo" also.  (made this a "shared folder" and put the "bingo.txt" file in it)
    3.  Did a "network locations" search for this folder and put it in with the other shared folders/files in the "desktop network" location.
    4.  Went upstairs to my "win7 laptop" 
    a.  pressed the Start button and entered "favorites" (without the quotation marks) into the little "search" rectangle that appeared just above the Start button.  The "Favorites" folder appeared at the top of the list.  I clicked on it and
    the Favorites folder opened... then I "right clicked" on the "Recent Places" folder and created a "shortcut" on my desktop.
    b.  Now, whenever I click on any folder or file including the "shortcut to bingo.txt (which is on my win7 laptop for quick access)...well, the NETWORKED FOLDER:  "bingo" suddenly shows up in "Recent Places" as a shortcut.  THESE SHORTCUTS
    CAN BE DELETED since that's all they are ... JUST BE SURE you are still in the RECENT PLACES FOLDER.  For example:  I clicked on a "shared network folder" and almost deleted it by accident... NOT REALIZING THAT I WAS NO LONGER IN THE "Recent Places"
    folder...so, make sure before you delete.  It's of course OK to "select all" and delete all the shortcuts that accumulate over time in the "Recent Places" folder, etc.  Also I set the "sort" on the Recent Places folder to date/time, so that the "most
    recent" place I have been "is always at the top of the list.
    c.  So, far - and this is interesting - ONLY FOLDERS SHOW UP in the locations you visit then look for in the "Recent Places" folder.  So, for example, when I click on the shortcut (on my win7 laptop) for "bingo.txt"... and then later check the
    Recent Places folder... well, only the "shared network folder BINGO appears there!"  (not the bingo.txt file that's in it... I didn't click on the actual folder, just the bingo.txt shortcut, but what appears in the Recent Places folder IS ONLY THE NETWORK
    FOLDER)  
    d.  Now, the mystery: (my win7 computer was "indexing" in the background all this time) WHEN I DID A SEARCH FOR "bingo" ...the "bingo.txt" file was at the top of the list... I "right clicked" on it to check the properties (thinking the index has just
    located the shortcut on my desktop maybe)...BUT THE PROPERTIES ...showed the "networked location" on my desktop downstairs.
    e.  IN CONCLUSION:  I now have the capability to INDEX folders/files ON OTHER NETWORKED COMPUTERS from my "win7 x64 laptop" WITHOUT HAVING TO MAP THE NETWORK DRIVE!!!  (maybe because the index catches the "bingo folder" being CURRENTLY ACCESSED
    INDIVIDUALLY when I pull up the "Bingo.txt" by clicking it's shortcut on my laptop....
    you guys can play around with this... DON'T KNOW WHY the "index" didn't show "bingo.txt" (residing on my desktop downstairs) until I placed a "shortcut" to the "Recent Places" folder on my laptop desktop screen... might have something to do with the "complex
    index parameters" of Win 7, etc... but I don't have the time to try an trace it down, or test it, etc.  
    ... The win 7 indexing system MAY INDEX ANY SHARED FOLDER from another networked computer WHEN IT'S BEING ACCESSED LIVE on the win 7 computer... is probably what's happening... so I didn't have to "map the network drive" but I did have to "BE ACCESSING A
    FOLDER from another computer" for it to INDEX THAT FOLDER... now I don't, for example, know whether the INDEX system of my win7 laptop (running in the background) might not index a folder IF IT WAS DOING SOMETHING ELSE IN A BRIEF TIME that I was accessing
    the folder from the other computer.
    Win 7 index, from my experience, does seem to give some preference to INDEXING files you have recently or are currently accessing... if that helps.
    anyway,
    hope this helps some
    flashrob (my website:  dimestop.com if you're interested... probably put some of my fixes there, more permanently, etc.)

Maybe you are looking for