Re: How to use terminal to change mac-cache-ttl
On 12 October 2011 16:44, Vortran66 wrote: > I realize now that changing the cache values involves a little more than > changing a few values and that I am probably in > way over my head. Open a terminal and type "man gpg-agent". Make a note of any ttl values you want to set, eg: --default-cache-ttl n Set the time a cache entry is valid to n seconds. The default is 600 seconds. --default-cache-ttl-ssh n Set the time a cache entry used for SSH keys is valid to n sec- onds. The default is 1800 seconds. --max-cache-ttl n Set the maximum time a cache entry is valid to n seconds. After this time a cache entry will be expired even if it has been accessed recently. The default is 2 hours (7200 seconds). --max-cache-ttl-ssh n Set the maximum time a cache entry used for SSH keys is valid to n seconds. After this time a cache entry will be expired even if it has been accessed recently. The default is 2 hours (7200 seconds). Then type "nano ~/.gnupg/gpg-agent.conf" at the command prompt and enter the values you want without the preceding dashes, for example: default-cache-ttl 0 max-cache-ttl 0 Then kill any existing gpg-agent with "kill gpg-agent". As you are using gpg-tools, you may wish to direct your query to their email list - http://lists.gpgtools.org/mailman/listinfo/gpgtools-users Benjamin Donnachie ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
On 10/16/2011 9:31 PM, Vortran66 wrote: > Thank you very much. Looks like alter agent will not work with Snow > Leopard. It will, actually: all I have to do is recompile it for Snow Leopard. There's nothing in there that's Lion-specific. I'll see about making a new build within the next couple of hours. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
Mr. Hansen: Thank you very much. Looks like alter agent will not work with Snow Leopard. As soon as I upgrade to Lion I will give it a try. Thanks for helping out a novice! Bill Robert J. Hansen-3 wrote: > > On 10/12/11 11:44 AM, Vortran66 wrote: >> Thanks for all your effort. I realize now that changing the cache >> values involves a little more than changing a few values and that I >> am probably in way over my head. > > It involves editing a couple of configuration files by hand, and > requires you to be a little comfortable with the command-line, yes. > This much is true. :) > >> I am basically just a dumb user > > This much is totally bogus. :) > >> who has no real experience programming other than a little COBAL back >> in college 25 years ago (don't laugh). > > Laughing at COBOL is sort of like laughing at the Great Pyramids of > Egypt: it tells you a lot more about the person doing the laughing than > it does about COBOL. Speaking just for myself, I don't laugh at apps > that have been running for five decades without a crash. > >> I read the agent-alter PDF and I get the gist of what it does. My >> problem is I really unfamiliar with using terminal. > > That's not for you, friend. :) My goal is to give you a tool you can > easily use to solve your problem. That PDF was meant more for other > people to review and tell me, "no, you're doing it wrong, you > should...". (And that was very much worthwhile: Werner pointed me > towards the gpgconf tool, which simplified things a lot.) > > Anyway. You might want to take a look at: > > http://keyservers.org/~rjh/AlterAgent.zip > > Download it, unzip it, and within there will be an OS X app called > "AlterAgent." Double-click and you might just get the solution to your > problem. It might also crash horribly. > > *I've only tested it on my own machine.* No warranties express or > implied, etc., etc. If it breaks you get to keep both parts. > > If you have feedback ("it's great, you're so cool!", or "my Mac is now > on fire and it's all your fault!"), please send it to me directly: don't > spam the list with it, please. Thanks. :) > > _______ > Gnupg-users mailing list > Gnupg-users@gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnupg-users > > -- View this message in context: http://old.nabble.com/How-to-use-terminal-to-change-mac-cache-ttl-tp32599099p32664202.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
On 10/12/11 11:44 AM, Vortran66 wrote: > Thanks for all your effort. I realize now that changing the cache > values involves a little more than changing a few values and that I > am probably in way over my head. It involves editing a couple of configuration files by hand, and requires you to be a little comfortable with the command-line, yes. This much is true. :) > I am basically just a dumb user This much is totally bogus. :) > who has no real experience programming other than a little COBAL back > in college 25 years ago (don't laugh). Laughing at COBOL is sort of like laughing at the Great Pyramids of Egypt: it tells you a lot more about the person doing the laughing than it does about COBOL. Speaking just for myself, I don't laugh at apps that have been running for five decades without a crash. > I read the agent-alter PDF and I get the gist of what it does. My > problem is I really unfamiliar with using terminal. That's not for you, friend. :) My goal is to give you a tool you can easily use to solve your problem. That PDF was meant more for other people to review and tell me, "no, you're doing it wrong, you should...". (And that was very much worthwhile: Werner pointed me towards the gpgconf tool, which simplified things a lot.) Anyway. You might want to take a look at: http://keyservers.org/~rjh/AlterAgent.zip Download it, unzip it, and within there will be an OS X app called "AlterAgent." Double-click and you might just get the solution to your problem. It might also crash horribly. *I've only tested it on my own machine.* No warranties express or implied, etc., etc. If it breaks you get to keep both parts. If you have feedback ("it's great, you're so cool!", or "my Mac is now on fire and it's all your fault!"), please send it to me directly: don't spam the list with it, please. Thanks. :) ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
Robert J. Hansen-3 wrote: > > On 10/5/11 7:55 PM, Vortran66 wrote: >> I have a very limited knowledge of using terminal in Mac. Can someone >> tell >> me what commands I would need to enter to do this. > > > The good news is that I've put together a small Python script that will > (hopefully) make things a little easier on you. Give me a day or two to > do more bughunting, and once it's done it should be pretty easy on you > to edit these values. > > http://keyservers.org/~rjh/agent-alter-1.0.tar.bz2 > http://keyservers.org/~rjh/agent-alter-code.pdf > http://keyservers.org/~rjh/agent-alter.pdf > > You'll need Norman Ramsey's Noweb package installed in order to rebuild > from the Noweb source, but you can also just look inside src/ to get a > pre-extracted version (named "agent-alter"). Alternately, just read the > two PDFs. Any and all bug finds gratefully accepted. > > > ___ > Gnupg-users mailing list > Gnupg-users@gnupg.org > http://lists.gnupg.org/mailman/listinfo/gnupg-users > > Mr Hansen: Thanks for all your effort. I realize now that changing the cache values involves a little more than changing a few values and that I am probably in way over my head. I am basically just a dumb user who has no real experience programming other than a little COBAL back in college 25 years ago (don't laugh). I read the agent-alter PDF and I get the gist of what it does. My problem is I really unfamiliar with using terminal. To use agent-alter do I just copy the code from the PDF and paste into terminal or is more involved? I understand how to change the cache values in agent-alter but beyond that I am pretty clueless. If there are a few monkey-see monkey-do steps that I need to do to implement alter-agent could you let me know what they are. If it is more involved than that or if it is something I could easily screw up my system not knowing what I am doing let me know and I will search for another encryption solution. Is there another front end to GnuPG besides GPG Tools that would allow me to limit the time a password is cached? I am using a mac running os x. I am using GPG Tools, Keychain Access Version 0.8.13 (0.8.13) Bill -- View this message in context: http://old.nabble.com/How-to-use-terminal-to-change-mac-cache-ttl-tp32599099p32639372.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
On 10/7/11 4:18 AM, Werner Koch wrote: > I suggest that you use gpgconf to change configuration options. Cute: thanks for the heads-up. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
On Thu, 6 Oct 2011 20:20, r...@sixdemonbag.org said: > The good news is that I've put together a small Python script that will > (hopefully) make things a little easier on you. Give me a day or two to I suggest that you use gpgconf to change configuration options. We designed this tool to allow easy changing of configuration options using a GUI or by scripts. As part of GnuPG it has intimate knowledge of the options and takes care not to break things. It is being used for years by Kleopatra and GPA for preference settings and to dynamically create configuration dialogs. http://gnupg.org/documentation/manuals/gnupg/gpgconf.html Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: How to use terminal to change mac-cache-ttl
On 10/5/11 7:55 PM, Vortran66 wrote: > I have a very limited knowledge of using terminal in Mac. Can someone tell > me what commands I would need to enter to do this. Although I think that using Terminal.app is fun, natural and sensible, it's possible that I'm psychotic. If you *want* to learn how to use Terminal.app, you might find it enjoyable. If you just want to make the darn thing work, the more you wrestle with Terminal.app the more frustrated you'll get. The good news is that I've put together a small Python script that will (hopefully) make things a little easier on you. Give me a day or two to do more bughunting, and once it's done it should be pretty easy on you to edit these values. Anyone who knows both Python and OS X: please feel free to check out -- http://keyservers.org/~rjh/agent-alter-1.0.tar.bz2 http://keyservers.org/~rjh/agent-alter-code.pdf http://keyservers.org/~rjh/agent-alter.pdf You'll need Norman Ramsey's Noweb package installed in order to rebuild from the Noweb source, but you can also just look inside src/ to get a pre-extracted version (named "agent-alter"). Alternately, just read the two PDFs. Any and all bug finds gratefully accepted. Let's see if we can't get something ready for this guy by the weekend. :) ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
How to use terminal to change mac-cache-ttl
I am using GnuPG with Mac OSX I need to reset password caching to a lower setting than the default. I was told that caching in gpg-agent is responsible for this and that I need to configure its cache entry TTL values. I was told to look for cache settings in gpg-agent.conf (to be created in your GnuPG homedir. I have a very limited knowledge of using terminal in Mac. Can someone tell me what commands I would need to enter to do this. I believe I need to set --max-cache-ttl n (with n being seconds). The problem is I have no idea how to go about changing this in terminal. Sorry for being so ignorant on this. -- View this message in context: http://old.nabble.com/How-to-use-terminal-to-change-mac-cache-ttl-tp32599099p32599099.html Sent from the GnuPG - User mailing list archive at Nabble.com. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users