From owner-freebsd-questions Mon Jan 4 08:17:49 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA01251 for freebsd-questions-outgoing; Mon, 4 Jan 1999 08:17:49 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from shemp.palomine.net (shemp.palomine.net [205.198.88.200]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA01244 for ; Mon, 4 Jan 1999 08:17:46 -0800 (PST) (envelope-from cjohnson@palomine.net) Received: (qmail 16101 invoked by uid 1000); 4 Jan 1999 16:17:20 -0000 Message-ID: <19990104111720.A16051@palomine.net> Date: Mon, 4 Jan 1999 11:17:20 -0500 From: Chris Johnson To: Jerry Raynor , freebsd-questions@FreeBSD.ORG Subject: Re: . files References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Jerry Raynor on Mon, Jan 04, 1999 at 10:42:46AM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, Jan 04, 1999 at 10:42:46AM -0500, Jerry Raynor wrote: > I saw someone asking about hidden files and was wondering is the a way to > prevent end user from seeing hidden files? > > I have a . file that I need/use in users directories and some users > have deleted it. The file owner is root but obviously the user has rights > to the directory so its allowing them to remove it. I don't think you can prevent them from seeing it, but you can prevent them from deleting it. If "somefile" is the file in question, do this as root: # chflags sunlnk somefile The user can own the file and the directory it's in, but he won't be able to delete the file. Root won't even be able to delete it unless he changes the flag back. man chflags for more details. Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message