From owner-freebsd-current Thu Jan 27 20:17:33 2000 Delivered-To: freebsd-current@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 301B315A24 for ; Thu, 27 Jan 2000 20:17:31 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id WAA36535; Thu, 27 Jan 2000 22:17:23 -0600 (CST) (envelope-from dan) Date: Thu, 27 Jan 2000 22:17:23 -0600 From: Dan Nelson To: Emre Cc: freebsd-current@freebsd.org Subject: Re: .bash_history and permissions Message-ID: <20000127221723.A36507@dan.emsphone.com> References: <20000127155328.A32492@iris.vsrc.uab.edu> <20000127172415.A19202@dan.emsphone.com> <20000127202454.A12343@iris.vsrc.uab.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20000127202454.A12343@iris.vsrc.uab.edu>; from "Emre" on Thu Jan 27 20:24:54 GMT 2000 X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jan 27), Emre said: > On Thu, Jan 27, 2000 at 05:24:16PM -0600, Dan Nelson wrote: > > Delete permission comes from the directory, not the file. No amount of > > chmod'ing the file will affect it. > > Hmm, so If I took out write permission for the directory, the user > wouldn't be able to delete his .bash_history, correct? (or any file > inside it for that matter) Right. But remember that no amount of filesystem attribute changes (even the chflags stuff) will help if the user switches shells, or simply turns off the history feature in bash. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message