From owner-freebsd-questions@FreeBSD.ORG Tue Jan 18 15:01:31 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A7E0D16A4D1 for ; Tue, 18 Jan 2005 15:01:31 +0000 (GMT) Received: from rogers.com (CPE00095bf5ff21-CM000f9f578d7a.cpe.net.cable.rogers.com [70.24.145.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1448443D31 for ; Tue, 18 Jan 2005 15:01:29 +0000 (GMT) (envelope-from gbell72@gardnerbell.ca) Received: from gardnerbell.ca (localhost [127.0.0.1]) by rogers.com (8.13.1/8.13.1) with ESMTP id j0IEx4AA006134 for ; Tue, 18 Jan 2005 09:59:04 -0500 (EST) (envelope-from gbell72@gardnerbell.ca) Received: (from gbell72@localhost) by gardnerbell.ca (8.13.1/8.13.1/Submit) id j0IEww8C006133 for freebsd-questions@freebsd.org; Tue, 18 Jan 2005 09:58:58 -0500 (EST) (envelope-from gbell72) Date: Tue, 18 Jan 2005 09:58:58 -0500 From: Gardner Bell To: freebsd-questions@freebsd.org Message-ID: <20050118145858.GA5984@gardnerbell.ca> Mail-Followup-To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: chmod: Operation not permitted X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jan 2005 15:01:31 -0000 After rebuilding world last night I can no longer chmod some system binaries that I don't need. When attemtping to do so I get a permission denied. root@Spartan# chmod 000 /bin/rcp chmod: /bin/rcp: Operation not permitted. root@spartan# chmod 000 /bin/rlogin chmod: /bin/rlogin: Operation not permitted The only binaries this seems to be happening with are the ones used for remote operations. Ie: rcp, rlogin, rsh, opieinfo, etc. I followed the complete instructions in the handbook when rebuilding world so I don't think that could be the problem. But I did run the following after the system booted correctly. # cd /usr/obj # chflags -R noschg * # rm -rf * Could this be the problem? The output of uname is 5.3-RELEASE-p5 and I am running in kernel.securelevel=1. root@spartan# id uid=0(root) gid=0(wheel) groups=0(wheel), 5(operator) These are the flags I used in make.conf to build world. CPUTYPE=i686 CFLAGS= -O2 -pipe MAKESHELL?=sh NO_DYNAMICROOT=true NOPROFILE=true NO_BIND=true If any further information is needed let me know. Thanks for your help. Regards Gardner