Date: Tue, 18 Jan 2005 15:17:15 +0000 From: Mark Ovens <marko@freebsd.org> To: freebsd-questions@freebsd.org Subject: Re: chmod: Operation not permitted Message-ID: <41ED287B.5000405@freebsd.org> In-Reply-To: <20050118145858.GA5984@gardnerbell.ca> References: <20050118145858.GA5984@gardnerbell.ca>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41ED287B.5000405>