From owner-freebsd-questions Mon Jun 5 20: 3:39 2000 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 78AFB37B7DB for ; Mon, 5 Jun 2000 20:03:34 -0700 (PDT) (envelope-from grog@wantadilla.lemis.com) Received: (from grog@localhost) by wantadilla.lemis.com (8.9.3/8.9.3) id MAA57623; Tue, 6 Jun 2000 12:33:24 +0930 (CST) (envelope-from grog) Date: Tue, 6 Jun 2000 12:33:24 +0930 From: Greg Lehey To: "Dan B. " Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How to remove a 'sticky bit' Message-ID: <20000606123324.E57232@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre2i In-Reply-To: Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 5 June 2000 at 19:47:29 -0700, Dan B. wrote: > Hi folks; > ls -la /usr/libexec/mail.local gives me: > > -r-sr-xr-s 1 root wheel 15040 .... /usr/libexec/mail.local What ls program are you using? Is this even FreeBSD? FreeBSD uses 't' for the sticky bit, so you should have seen -r-sr-xr-t 1 root wheel 15040 .... /usr/libexec/mail.local > as root I did: > > chmod 0 /usr/libexec/mail.local > > and I get the error: > > chmod: /usr/libexec/mail.local: Operation not permited This works fine for me, though I wonder what you're trying to do. Are you sure you were root? Maybe you have the schg flag set. What does ls -lo mail.local say? > how do i chmod this file? Certainly not to 0 if you intend to continue running it. 'chmod 4555 mail.local' would get it back to the default permissions. Greg -- When replying to this message, please copy the original recipients. For more information, see http://www.lemis.com/questions.html Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message