From owner-freebsd-questions Fri Mar 26 22:40:39 1999 Delivered-To: freebsd-questions@freebsd.org Received: from alpha.comkey.com.au (alpha.comkey.com.au [203.9.152.215]) by hub.freebsd.org (Postfix) with SMTP id B2D73150FF for ; Fri, 26 Mar 1999 22:40:32 -0800 (PST) (envelope-from gjb@comkey.com.au) Received: (qmail 7786 invoked by uid 1001); 27 Mar 1999 05:22:48 -0000 Message-ID: <19990327052248.7785.qmail@alpha.comkey.com.au> X-Posted-By: GBA-Post 1.04 06-Feb-1999 X-PGP-Fingerprint: 5A91 6942 8CEA 9DAB B95B C249 1CE1 493B 2B5A CE30 Date: Sat, 27 Mar 1999 15:22:48 +1000 From: Greg Black To: Glen Mann Cc: FreeBSD Questions Subject: Re: bash history permissions wide open References: <36FC191D.312452DC@cyberia.com> In-reply-to: <36FC191D.312452DC@cyberia.com> of Fri, 26 Mar 1999 18:32:45 EST Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message