From owner-freebsd-current@freebsd.org Mon Jun 29 17:42:14 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A5AD134FC6F for ; Mon, 29 Jun 2020 17:42:14 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49wZYy3ynXz47Y7; Mon, 29 Jun 2020 17:42:14 +0000 (UTC) (envelope-from gbe@freebsd.org) Received: from localhost (p548612f6.dip0.t-ipconnect.de [84.134.18.246]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gbe) by smtp.freebsd.org (Postfix) with ESMTPSA id 1619C18E81; Mon, 29 Jun 2020 17:42:13 +0000 (UTC) (envelope-from gbe@freebsd.org) Date: Mon, 29 Jun 2020 19:42:12 +0200 From: Gordon Bergling To: Kevin Oberman Cc: FreeBSD Current , david@catwhisker.org Subject: Re: Undeletable files after kyua test runs Message-ID: <20200629174212.GA80071@lion.0xfce3.net> References: <20200629172626.GA63722@lion.0xfce3.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: X-Operating-System: FreeBSD 12.1-STABLE amd64 X-Host-Uptime: 7:37PM up 2 days, 6:22, 6 users, load averages: 1.38, 1.13, 1.09 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jun 2020 17:42:14 -0000 Hi Kevin, Hi David, On Mon, Jun 29, 2020 at 10:32:38AM -0700, Kevin Oberman wrote: > On Mon, Jun 29, 2020 at 10:26 AM Gordon Bergling wrote: > > I recently stumbled across undeletable files that are generated by kyua > > test runs, > > for example > > > > -rwxr-xr-x 1 root wheel 0 May 9 13:10 > > /tmp/kyua.aB4q62/8676/work/fileforaudit > > > > I haven't yet identified the test that generate those files, but it is > > impossible > > to delete them. I have clear_tmp_enable="YES" set in the /etc/rc.conf, but > > on every boot the system argues that these file aren't deletable. > > I tried to 'rm -rf' them by hand but, even this wasn't possible. I have > > looked for > > any extend attributes, but I didn't find any. > > > > Has anyone an idea how this is possible and may how these files can be > > deleted? > > Have you done 'ls -o' to check for flags like schg? > -- > Kevin Oberman, Part time kid herder and retired Network Engineer > E-mail: rkoberman@gmail.com > PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 Argh, I haven't thought about chflags for quite some time. The chflags bit was set and after an # find /tmp/ -type f -exec chflags -R 0 {} \; I was able to finally delete them. Thanks for the fast respone, Gordon