From owner-freebsd-questions Mon Jan 10 10:41:31 2000 Delivered-To: freebsd-questions@freebsd.org Received: from css-1.cs.iastate.edu (css-1.cs.iastate.edu [129.186.3.24]) by hub.freebsd.org (Postfix) with ESMTP id 32DD014A04 for ; Mon, 10 Jan 2000 10:41:28 -0800 (PST) (envelope-from ghelmer@cs.iastate.edu) Received: from popeye.cs.iastate.edu (ghelmer@popeye.cs.iastate.edu [129.186.3.4]) by css-1.cs.iastate.edu (8.9.0/8.9.0) with ESMTP id MAA24290; Mon, 10 Jan 2000 12:41:27 -0600 (CST) Received: from localhost (ghelmer@localhost) by popeye.cs.iastate.edu (8.9.0/8.9.0) with ESMTP id MAA18319; Mon, 10 Jan 2000 12:41:24 -0600 (CST) X-Authentication-Warning: popeye.cs.iastate.edu: ghelmer owned process doing -bs Date: Mon, 10 Jan 2000 12:41:24 -0600 (CST) From: Guy Helmer To: Agent Drek Cc: FreeBSD Questions Subject: Re: rm suid file? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 10 Jan 2000, Agent Drek wrote: > I don't understand something about file permissions ... and cannot > find anything in the man pages so far. Here's the gist of what I was > doing. > > hiphop# pwd > / > hiphop# mkdir foo > hiphop# cp -p bin/rcp foo/ > cp: foo/rcp: Operation not permitted > hiphop# ls -l foo/* > -r-sr-xr-x 1 root wheel 208536 Jan 7 20:37 foo/rcp Use "ls -lo" to show the file flags (see the chflags(1) man page for information on the flags and how to set/unset them). The "schg" flag is probably set, which prevents changes or deletions. HTH, Guy Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science Research Assistant, Dept. of Computer Science --- ghelmer@cs.iastate.edu http://www.cs.iastate.edu/~ghelmer To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message