Re: /etc/rc: clearing /tmp with files having flags

2010-12-04 Thread Theo de Raadt
> Jiri B. wrote on Sat, Dec 04, 2010 at 12:37:03PM +0100: > > > I was playing with file flags in /tmp, after reboot I saw > > that /etc/rc cannot `rm' files with flags. Perhaps they are not spposed to be removed, since they have those flags. > When causing an exceptionally ugly mess by hand, > i

Re: /etc/rc: clearing /tmp with files having flags

2010-12-04 Thread Eric Furman
On Sat, 04 Dec 2010 13:53 +0100, "Ingo Schwarze" wrote: > Hi Jiri, > > Jiri B. wrote on Sat, Dec 04, 2010 at 12:37:03PM +0100: > > > I was playing with file flags in /tmp, after reboot I saw > > that /etc/rc cannot `rm' files with flags. > > When causing an exceptionally ugly mess by hand, > i'

Re: /etc/rc: clearing /tmp with files having flags

2010-12-04 Thread Ted Unangst
On Sat, Dec 4, 2010 at 6:37 AM, Jiri B. wrote: > I was playing with file flags in /tmp, after reboot I saw > that /etc/rc cannot `rm' files with flags. That seems reasonable to me. Maybe you wanted to keep the file around for a little longer than usual.

Re: /etc/rc: clearing /tmp with files having flags

2010-12-04 Thread Jiri B.
On Sat, Dec 04, 2010 at 01:53:13PM +0100, Ingo Schwarze wrote: >When causing an exceptionally ugly mess by hand, >i'd say cleaning up that mess by hand is a sane approach. > >Scripts like rc(8) and daily(8) are supposed to cover maintenance >issues related to normal and sane usage of the system. >I

Re: /etc/rc: clearing /tmp with files having flags

2010-12-04 Thread Ingo Schwarze
Hi Jiri, Jiri B. wrote on Sat, Dec 04, 2010 at 12:37:03PM +0100: > I was playing with file flags in /tmp, after reboot I saw > that /etc/rc cannot `rm' files with flags. When causing an exceptionally ugly mess by hand, i'd say cleaning up that mess by hand is a sane approach. Scripts like rc(8)

/etc/rc: clearing /tmp with files having flags

2010-12-04 Thread Jiri B.
x: rc === RCS file: /cvs/src/etc/rc,v retrieving revision 1.345 diff -u -p -r1.345 rc --- rc 8 Nov 2010 19:44:36 - 1.345 +++ rc 4 Dec 2010 11:32:46 - @@ -542,10 +542,15 @@ echo clearing /tmp # prune quickly with one rm, then use fi

Re: clearing /tmp

2008-11-01 Thread Ted Unangst
On Thu, Oct 30, 2008 at 12:17 PM, Lars Noodin <[EMAIL PROTECTED]> wrote: >> Read hier(7) manual. > > That's an exceptionally useful page. > I was looking for something like that with 'apropos'. If you haven't done so, you should read the afterboot man page, followed by its references. hier is one

Re: clearing /tmp

2008-10-30 Thread Lars Noodén
> Read hier(7) manual. Thanks. http://www.openbsd.org/cgi-bin/man.cgi?query=hier That's an exceptionally useful page. I was looking for something like that with 'apropos'. For the archive: /tmp/ Temporary files; the contents of /tmp are not pre

Re: clearing /tmp

2008-10-30 Thread Andreas Kahari
Read hier(7) manual. 2008/10/30 Lars Noodin <[EMAIL PROTECTED]>: > Thomas Heller wrote: > >> there is one thing that puzzles me about /tmp: > > I notice there is also /var/tmp. What is the reason for having two > directories for apparently similar purposes? Would there be any major > problems f

Re: clearing /tmp

2008-10-30 Thread Will Maier
Hi Lars- On Thu, Oct 30, 2008 at 05:15:53PM +0200, Lars Nood'en wrote: > I notice there is also /var/tmp. What is the reason for having > two directories for apparently similar purposes? Would there be > any major problems from combining the two, either by linking or > symlinking one to the oth

Re: clearing /tmp

2008-10-30 Thread Lars Noodén
Thomas Heller wrote: > there is one thing that puzzles me about /tmp: I notice there is also /var/tmp. What is the reason for having two directories for apparently similar purposes? Would there be any major problems from combining the two, either by linking or symlinking one to the other? Reg

Re: clearing /tmp

2008-10-30 Thread Thomas Heller
Paul de Weerd ([EMAIL PROTECTED]) wrote: > It just skips lost+found and quota files, if you have them. Of course it does, I just consistently misread the find command's arguments in /etc/rc... -- GMX Download-Spiele: Preizsturz! Alle Puzzle-Spiele Deluxe |ber 60% billiger. http://games.entertai

Re: clearing /tmp

2008-10-30 Thread Paul de Weerd
On Thu, Oct 30, 2008 at 02:36:39PM +0100, Thomas Heller wrote: | Hello, | | there is one thing that puzzles me about /tmp: | | Why does the hier(7) manpage say that "the contents of /tmp are _not_ | preserved across a system reboot" while /etc/rc cleans up /tmp only | partially? It just skips lo

clearing /tmp

2008-10-30 Thread Thomas Heller
Hello, there is one thing that puzzles me about /tmp: Why does the hier(7) manpage say that "the contents of /tmp are _not_ preserved across a system reboot" while /etc/rc cleans up /tmp only partially? Thomas -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal f|r M