From owner-freebsd-current@freebsd.org Mon Jun 29 18:59: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 4B6C635223F for ; Mon, 29 Jun 2020 18:59:14 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49wcGn5FVmz4Dkb; Mon, 29 Jun 2020 18:59:13 +0000 (UTC) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id 05TIwlal048487; Mon, 29 Jun 2020 11:58:47 -0700 (PDT) (envelope-from freebsd-rwg@gndrsh.dnsmgr.net) Received: (from freebsd-rwg@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id 05TIwlGL048486; Mon, 29 Jun 2020 11:58:47 -0700 (PDT) (envelope-from freebsd-rwg) From: "Rodney W. Grimes" Message-Id: <202006291858.05TIwlGL048486@gndrsh.dnsmgr.net> Subject: Re: Undeletable files after kyua test runs In-Reply-To: <20200629174212.GA80071@lion.0xfce3.net> To: Gordon Bergling Date: Mon, 29 Jun 2020 11:58:47 -0700 (PDT) CC: Kevin Oberman , FreeBSD Current , david@catwhisker.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 49wcGn5FVmz4Dkb X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:13868, ipnet:69.59.192.0/19, country:US]; REPLY(-4.00)[] 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 18:59: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 {} \; ^^Only files ^^ meaningless when chflags is given ONLY files You probably could of done: chflags -R 0 /tmp/ > > I was able to finally delete them. > > Thanks for the fast respone, > > Gordon > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- Rod Grimes rgrimes@freebsd.org