From owner-freebsd-hackers@freebsd.org Tue Jan 31 00:12:40 2017 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1BB62CC8BB1 for ; Tue, 31 Jan 2017 00:12:40 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: from mail-it0-x234.google.com (mail-it0-x234.google.com [IPv6:2607:f8b0:4001:c0b::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DC982E6D for ; Tue, 31 Jan 2017 00:12:39 +0000 (UTC) (envelope-from heisenbug.bala@gmail.com) Received: by mail-it0-x234.google.com with SMTP id c7so114002578itd.1 for ; Mon, 30 Jan 2017 16:12:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=rusjDnaySdl8x+8/wwC/A1y6FB5gJcFYi/vQm+fNeJU=; b=qnSPEi1sf6Pb2GwY0u+SQWKdfDK3p0NW2PXe13J+s1/s61CKs4mYpxfPsC6lKr95yC OGVJbXD7sxJSZ8BvVbEwumGYmtRNtnE92Oje6bfBpBDPFbxbEG5yyUifmtdYQ+D6RxAc Y+jDHtkTsL6EtE4kF2F5QOTz68Q2ZpQX19OQkwwV5Mwud1rK5Cb2X3g7JiohBHjTSJql FFhnZxQeV3+oEUx9DMcbO5PFGhOwxQkpXACXwzUj8qxrMEXJFMTsrRnWZFYfuO6Rt4Qu fnsJAs9lEJoXCf5AXXHdFVQ+4BGaMYS1Qb98hvw7akm66jY651Q2RsRTwOaMwEaTotxb UY0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rusjDnaySdl8x+8/wwC/A1y6FB5gJcFYi/vQm+fNeJU=; b=qyL8Zv2pcT0kDin3fDd2sQJguESnmh7c8ZWT2xuEKaDX/hNc+W8FwjrGBE/b0FZU+k zJ9rFu0RzoT2BVJi9DGvYHhly69PE1FbgfGdp6XDGhT7gt1D/f1RVh3GP+ssT1nuMqUA TFC1/3nKFsgLjkl3zcSRIHOGxvUulqH719QF3L2VkAUIqIBgnYvRL6Fbm8DdNw7hyEa+ k3jHKKx3HaFJM/ePMjZem6Nph7dnKW3aPpwj4NO5rrn0ZgDg0rbDWXK26U0quKAuEaTI kpTPaDep1App079uHMTOC/TJIfTzgWkVA6P0eYu6E9dDrSroU/9JEIQYJTyeqJ7cIQVY 9JJA== X-Gm-Message-State: AIkVDXLlPZnyawQxqWyB5tIlMgR26ezq1Et4M1NJe8zqdATX4JdnWx3SLCAmjY0/jiHUyodk7qC0ladxNY73TQ== X-Received: by 10.36.108.15 with SMTP id w15mr17591176itb.73.1485821559218; Mon, 30 Jan 2017 16:12:39 -0800 (PST) MIME-Version: 1.0 Received: by 10.36.70.84 with HTTP; Mon, 30 Jan 2017 16:12:38 -0800 (PST) From: Balaji Palaniswami Date: Mon, 30 Jan 2017 16:12:38 -0800 Message-ID: Subject: How to delete read only files. To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 00:12:40 -0000 Hi, I am trying to delete read only files. # pwd /usr/home/bp/nfsroot/lib # whoami root # ls libc.so.7 libcrypt.so.5 libthr.so.3 # ls -ltr total 3264 -r--r--r-- 1 root wheel 1460592 Jan 29 12:07 libc.so.7 -r--r--r-- 1 root wheel 51640 Jan 29 12:07 libcrypt.so.5 -r--r--r-- 1 root wheel 109568 Jan 29 12:08 libthr.so.3 # rm -rf libc.so.7 rm: libc.so.7: Operation not permitted # chmod 777 libc.so.7 chmod: libc.so.7: Operation not permitted Please suggest me some ways to delete these files. Thanks, Balaji