Cleaning out /tmp on startup [cleanfs]

Nathan Coulson conathan at conet.dyndns.org
Tue Mar 23 17:22:24 PST 2004


> Nathan Coulson wrote:
>
>>>Nathan Coulson wrote:
>>>
>>>
>>>
>>>>cd /tmp; find . -xdev ! -name . ! \( -name lost+found -uid 0 \) -depth
>>>>-exec rm -rf {} \; [With the help of Zack]
>>>>
>>>>
>>>>
>>>Hmm.  Why the -uid 0 part?
>>>  -- Bruce
>>>
>>>
>>
>>It was in the line that Zack gave me...
>>
>>
> If we can't explain it, it shouldn't be there.
>   -- Bruce

Well,  it checks to make sure lost+found is owned by root, not somehting
that someone else created.

it's probably unnecessary (how many people type in mkdir
/tmp/lost+found?).  [and was not in the commit I did]



More information about the blfs-dev mailing list