From owner-freebsd-questions@FreeBSD.ORG Tue Jan 18 15:17:22 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 154CD16A4CE for ; Tue, 18 Jan 2005 15:17:22 +0000 (GMT) Received: from ptb-relay01.plus.net (ptb-relay01.plus.net [212.159.14.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id C975343D4C for ; Tue, 18 Jan 2005 15:17:21 +0000 (GMT) (envelope-from marko@freebsd.org) Received: from [80.229.231.20] (helo=[192.168.254.25]) by ptb-relay01.plus.net with esmtp (Exim) id 1Cqv6d-000Pwl-8x for freebsd-questions@freebsd.org; Tue, 18 Jan 2005 15:17:19 +0000 Message-ID: <41ED287B.5000405@freebsd.org> Date: Tue, 18 Jan 2005 15:17:15 +0000 From: Mark Ovens User-Agent: Mozilla Thunderbird 7.0 (X11/20050115) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20050118145858.GA5984@gardnerbell.ca> In-Reply-To: <20050118145858.GA5984@gardnerbell.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 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:17:22 -0000 Gardner Bell wrote: > 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 All those have schg flag set on my RELENG_5 system (also, rlogin and rcp are in /usr/bin, not /bin). /home/mark{83}# ls -lo /bin/r* /usr/bin/r* -r-sr-xr-x 1 root wheel schg 18388 13 Jan 09:50 /bin/rcp -r-xr-xr-x 1 root wheel - 3668 13 Jan 09:50 /bin/realpath -r-xr-xr-x 2 root wheel - 48832 13 Jan 09:50 /bin/red .... -r-xr-xr-x 1 root wheel - 55748 13 Jan 09:51 /usr/bin/rlog -r-sr-xr-x 1 root wheel schg 10804 13 Jan 09:52 /usr/bin/rlogin -r-xr-xr-x 1 root wheel - 82296 13 Jan 09:52 /usr/bin/rpcgen -r-xr-xr-x 1 root wheel - 30888 13 Jan 09:52 /usr/bin/rpcinfo -r-xr-xr-x 1 root wheel - 9964 13 Jan 09:52 /usr/bin/rs -r-sr-xr-x 1 root wheel schg 8800 13 Jan 09:52 /usr/bin/rsh -r-xr-xr-x 1 root wheel - 6464 13 Jan 09:52 /usr/bin/rup -r-xr-xr-x 1 root wheel - 7260 13 Jan 09:52 /usr/bin/ruptime -r-xr-xr-x 1 root wheel - 6776 13 Jan 09:52 /usr/bin/rusers -r-xr-xr-x 1 root wheel - 6500 13 Jan 09:52 /usr/bin/rwall -r-xr-xr-x 1 root wheel - 6256 13 Jan 09:52 /usr/bin/rwho /home/mark{84}# Mark