Date: Mon, 29 Jun 2020 11:58:47 -0700 (PDT) From: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> To: Gordon Bergling <gbe@freebsd.org> Cc: Kevin Oberman <rkoberman@gmail.com>, FreeBSD Current <freebsd-current@freebsd.org>, david@catwhisker.org Subject: Re: Undeletable files after kyua test runs Message-ID: <202006291858.05TIwlGL048486@gndrsh.dnsmgr.net> In-Reply-To: <20200629174212.GA80071@lion.0xfce3.net>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <gbe@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006291858.05TIwlGL048486>