Is there a safe way to get a password using bash?

Hey, I need to safely get a password in my bash script for encrypting some files. Currently my script just listens on a named pipe for something to come through and uses that for encrypting (I wasn't sure if it was safe to type a password in a shell script).
I would prefer something non-interactive if at all possible. This is going to be a cron job, so if it has to be interactive, it should be able to get my input without a terminal emulator. Any suggestions?

fukawi2 wrote:
Non-interactive is counter-intuitive to what passwords are for...
What is the problem you're trying to solve?
I need a cron job to encrypt something with a password. If I store the password in plain text, I lose security. If it requires input, then it's not very useful to schedule it. I wasn't really thinking that hard when I asked this question. I should have known that there wasn't really any way to reconcile these two needs.
Maybe I'll just go with the "security through obscurity" route... my root partition is encrypted anyways, and with proper permissions on the file I could be pretty sure that nobody will read the password. Throw in some obfuscated code and hope that nobody really, really smart gets ahold of my computer while it's running.

Similar Messages

  • My phone's locked to my boyfriends apple id/icloud account and we don't know the password, there is no way of getting the password either, it's a really old account is there any way around this meaning i can unlock my phone again?

    i got my iphone 4 off my boyfriend as mine had broke and he upgraded to a 5c.
    And the other day i restored my iphone by mistake and now it's not letting me on it unless i give the password to the account which neither of us have, or cannnot get hold of. Is there another way around this? or not?

    No there is no way around this.
    iCloud: Activation Lock

  • I was given a macbook at work, it belonged to a former employee. it has his iTunes account on it, i need to delete his and add mine, there is no way to get his password

    how can i delete an iTunes user account from a computer and add mine, no possible way to get the old passwor

    You should be able to log out of an account in iTunes via the Store > Sign Out menu option, that will then change to a Store > Sign In option so that you can log in with your account. Any apps etc that are in the iTunes library from the previous owner will remain tied to that previous owner's account, so you should delete them.

  • If I change my apple id and password on my desktop, will the new id and password be automatically changed in my laptop, my iPad and my iPhone?  If not, is there a safe way to consolidate ids, passwords, etc."

    Question: Is there a way to consolidate Apple IDs and passwords on my desktop, laptop, ipod, ipad and iphone?  I waste too much time trying to remember something different for each device or operation.

    This knowledge base article is the AppleID Faq...I recently changed my AppleID password, not the ID iteself, and the passward was synced across all devices.
    You cannot consolidate AppleIDs so you have to just establish one that will be used for all activities.  And keep in mind, app purchases are tied to the AppleID used for the purchase so updates have to be made using that ID.

  • HT1386 i am trying to restore a backup og my iphone 4 from itunes on my macbook, it asks me for a password which i do not recall setting up, is there any way of getting this password.

    i am trying to restore a backup og my iphone 4 from itunes on my macbook, it asks me for a password which i do not recall setting up, is there any way of getting this password.

    No there's not.  Otherwise that wouldn't be very secure, would it?

  • Is there any way to get Mail to use the Inbox as the Sent folder?

    This may sound like a silly question, but I have an IMAP account with over a hundred nested folders. I've tried using rules to sort email that comes in, but honestly? It's more trouble than it's worth. Generally, I leave emails in my Inbox until I've dealt with them, and then I sort them into the appropriate folder.
    Unfortunately, this means that I've then got to go and do the same thing with the message that I've just sent—which I sometimes (often) forget to do. I then end up with hundreds and hundreds of messages in the Sent folder that need to be hooked up with their respective originals. Bleh.
    Does anyone know if there's a way to get both the original message and the response to end up in the same folder automatically? Mail doesn't allow you to use the Inbox as anything but the Inbox—it's the root directory for the mailbox.
    Anyone?
    BTW, I'm posting this here because I have Tiger at work, where this is more of a problem, though I've got Leopard (and soon Snow Leopard) at home.

    Go easy—I've been using Macs since 1984 and have only used Microsoft's bloatware when work obliges me to. (I talked the boss who insisted that we run all of our email and calendars from an Access server into running OS X Server; Entourage went away, and life is much better. Word is still part of my everyday grind because of change tracking, but I have hopes for Pages.) I've used any number of email clients over the years, and Mail is my app of choice for many reasons.
    Nonetheless, a useful feature is a useful feature, even if it comes from Redmond. It's not 1996 any more—Macs aren't the downtrodden Rebel Alliance and Microsoft isn't the Empire.
    It seems to me that—especially with an IMAP account—you're not dealing with something intrinsic in the structure of the emailing system, since the folder structure doesn't even reside on the client computer (except as a mirror).
    I suppose that I could use a rule to shunt all email for that account into a single folder and then use that same folder as the Sent folder. I'd need to create the same rule on my various Macs (and punt on my iPhone)... but I suppose that would work. But I'm still not sure why a more elegant solution isn't possible.

  • Is there any other way to get Adobe Captivate help?

    Hi guys,
    is there any other way to get Adobe Captivate specific help? I've posted a question twice with no help, it's very specific, so no one here might actually know the solution. I'm wondering though, since the chat is obviously not for Captivate users with product or service questions.
    Is there a tech team I can somehow contact? We really need an answer to the problem.
    Thanks,
    Nat
    P.S. I'll post the problem again here:
    We publish mp4 training videos as HTML5 content and have the problem that we need to restrict the player to only play/pause.
    Adobe Captivate 7 works fantastic for us on almost all devices, many Androids, many browsers, and even on iPad. Captivate, after adding the video as a multi-slide video to one slide and publishing it as HTML5 content, only lets the student play and pause the video - just what we need.
    But then we test it on iPhone and the iPhone's internal quicktime player recognizes the mp4 video and kicks in, gives the student all the functions they want, totally overrides the HTML5 published Captivate restricted playback options.
    Is there ANY way we can get around that? Any function or box we haven't checked before publishing the HTML5 content?
    We would even be happy, if the video wouldn't play on iPhone - just as long as they can't use it to fast forward to the end of the video.
    Does anyone here know how to bypass the internal iPhone 5 player?
    Thanks,
    Nat

    By the way, I have updated to the newest Captivate 7 version and am using iOS version 7.0.4.
    Again, it's fine on iPad, but not on iPhone 5.

  • It is asking me for a password when I want to update my ipad, it has never done this before. I thought it ment my Apple ID but it didn't work and my ipad is now disabled. What should I do ? Is there a way of getting my password sent to me ?

    It is asking me for a password when I want to update my ipad, it has never done this before. I thought it ment my Apple ID but it didn't work and my ipad is now disabled. What should I do ? Is there a way of getting my password sent to me ?

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    You may have to do this several times.
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just canceling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • HT1473 Sometimes when I copy a CD into iTunes all of the songs do not show y up in one album, but mutiple albums, all with the same name. Is there an easy way to get all of the songs into one album.

    Sometimes when I copy a CD into iTunes all of the songs do not show y up in one album, but mutiple albums, all with the same name. Is there an easy way to get all of the songs into one album.

    Generally adding a common album artist will fix things.
    tt2

  • Apple says my epson perfection 1240u scanner no longer supported with 10.7. Is there an alternative way to get it to work?

    Apple says my epson perfection 1240u scanner is no longer supported with 10.7.
    Is there an alternative way to get it to work?

    Download updates from the manufacturers pages:
    http://www.epson.com/cgi-bin/Store/support/supDetail.jsp?oid=14549&BV_UseBVCooki e=yes&infoType=Downloads&platform=OSF_M_…

  • HT204406 after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?

         after this new itunes and ios7 update all my music is off my ipod touch unless i download them one artist at a time, i have over 3500 songs in there.  really?  is there no easier way to get my music back into my ipod?  like a download all button?  thanks.

    thanks for the reply.  guess i'll have to do that.  apple, not really happy with what you've done with this latest update.  have not been able to enjoy my music in my car since the update.  most of us dont mind changes that progress timely, but this was much more than just a progression.  this was a complete change.  and not a good one, at all.  thanks to the two people that replied.  appreciate it.

  • Is there any possible ways to get the MAC address?

    Hi guys:
    I am writing servlets on the server side. Is there any possible ways to get the MAC address when a HTTP request come in? Thank you very much for any helps.
    all the best!

    It is usually impossible to get the MAC address of the maker of a HTTP request in any programming language or system.
    At best, you can get the MAC of the closest intervening router, firewall, whatever.
    Are you sure you mean the MAC address? MAC looks like this: 8:ab:f0:0:71:bb:90 (Ethernet), or 01-23-45-67-89-ab (Token Ring), etc, depending on your network type.
    In contrast, an IP address looks like this: 209.249.116.195. If you want the IP address, check out the javadoc for HttpServletRequest and ServletRequest. Caveat: load balancers, web caches, proxy servers, etc will mask the "true" peer's address. Don't do anything silly like try to use the IP address for security or authentication.

  • My cousin told me there was a way to get free apps and that he could do it but what he really did was try to refund all my apps, the apps are gone from the history but no money has come back for me to even get the apps back, please help.

    My cousin told me there was a way to get free apps and that he could do it but what he really did was try to refund all my apps, the apps are gone from the history but no money has come back for me to even get the apps back, is this permanent?

    Yup!!
    Got what you deserved!
    Do not try and rip off or steal from people or companies.
    You have good cousin, there!(sarcasm)

  • I have purchased a new iPad2 and I was wondering if there is a way to get iPod content onto this new device. I am having difficulty finding any information on this kind of transfer and I am not sure if it is even possible. Thanks

    I have purchased a new iPad2 and I was wondering if there is a way to get iPod content onto this new device. I am having difficulty finding any information on this kind of transfer and I am not sure if it is even possible. Just not looking forward to loosing my progress in games and information in notes and other apps. Thanks

    Have you been syncing the iPod with iTunes? Then you just connect the iPad and set it up through iTunes and sync any content you want onto it.
    http://support.apple.com/kb/ht1386
    In terms of games/apps. If they are not universal (you will see a + symbol next to them) or made for iPad (you would see an HD in the name, usually) then they won't look good on an iPad as those apps will open in a iPod sized window, giving you the option to enlarge.

  • Is there any free way to get music i lost back if it's not synced to my computer?

    is there any free way to get music i lost back if it's not synced to my computer?

    In a word. No.

Maybe you are looking for