[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Encrypted bashrc?

From: Greg Wooledge
Subject: Re: Encrypted bashrc?
Date: Fri, 11 Nov 2011 08:09:17 -0500
User-agent: Mutt/

> > On Fri, Nov 11, 2011 at 01:48:59PM +0800, Clark J. Wang wrote:
> > > In my company all the people share a few of Solaris servers which use
> > > NIS to manage user accounts. The bad thing is that some servers' root
> > > passwords are well known so anybody can easily su to my account to
> > > access my files.  To protect some private info in my bashrc I want to
> > > encrypt it. Any one has a good solution for that?

The private information should be in a separate file, not in ~/.bashrc

> I've ever tried openssl and it worked fine overall. The big problem is that
> every time I log in or create a new shell window in screen I have to enter
> my key to decrypt the rc file. I usually open 10 shell windows in screen so
> it's really annoying. More elegant solution?

This is pretty off-topic for bug-bash, since it's not about bash or about
a bug.  It would REALLY help to know what you are doing, without all the
vagueness and obfuscation.

You could write something that works like ssh-agent and ssh-add.  Run the
agent at login time and run the adder when you have interactive capability,
so that the agent can be given your passphrase to unlock the private file.

Maybe you actually ARE talking about an ssh key.  God only knows, since
you couldn't be bothered to tell us.

In any case, it's not a bash bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]