Date: Sat, 27 Mar 1999 15:22:48 +1000 From: Greg Black <gjb@comkey.com.au> To: Glen Mann <gmann@cyberia.com> Cc: FreeBSD Questions <questions@FreeBSD.ORG> Subject: Re: bash history permissions wide open Message-ID: <19990327052248.7785.qmail@alpha.comkey.com.au> In-Reply-To: <36FC191D.312452DC@cyberia.com> of Fri, 26 Mar 1999 18:32:45 EST References: <36FC191D.312452DC@cyberia.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I like bash, and so use it for all my accounts, including root. In the root > home directory (/root) the .bash_history file has permissions such that anyone > can read it, for instance to get mysql admin passwords, etc. Wow - glad it's > only me on this system! Should I be so surprised at this? Shouldn't the file > be defaulted by bash to readable only by the owner? It's controlled by your umask. The default setting for this is rather silly. You could put "umask 077" in your startup file if you want nobody except the owner to read files you create. The man pages have more info. -- Greg Black <gjb@acm.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990327052248.7785.qmail>