From owner-freebsd-questions Sat Oct 13 18:20:17 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 447D237B401 for ; Sat, 13 Oct 2001 18:20:14 -0700 (PDT) Received: (qmail 10853 invoked by uid 100); 14 Oct 2001 01:20:13 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15304.59469.745740.9242@guru.mired.org> Date: Sat, 13 Oct 2001 20:20:13 -0500 To: ann kok Cc: questions@freebsd.org Subject: Re: tmp security In-Reply-To: <113008385@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ann kok types: > Hi all > I have two questions about tmp directory > 1/ is it automatically clear file after reboot Not by default. If you want it cleared, either 1) add "clear_tmp_enable=YES" to /etc/rc.conf, or 2) mount it on a memory file system. > 2/ how do I get information about tmp security? > I read a book a command 'sort', suggest not to use tmp > as temp directory It's insecure to use predictable names for temporary files if you put them where other users can create symlinks. Use the mktemp(3) function(s) to generate names, and you can avoid that problem. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message