From owner-freebsd-questions Tue Oct 16 8:29:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from web20110.mail.yahoo.com (web20110.mail.yahoo.com [216.136.226.47]) by hub.freebsd.org (Postfix) with SMTP id BA3CD37B407 for ; Tue, 16 Oct 2001 08:29:41 -0700 (PDT) Message-ID: <20011016152941.21060.qmail@web20110.mail.yahoo.com> Received: from [24.156.239.42] by web20110.mail.yahoo.com via HTTP; Tue, 16 Oct 2001 08:29:41 PDT Date: Tue, 16 Oct 2001 08:29:41 -0700 (PDT) From: ann kok Subject: Re: tmp security To: Mike Meyer Cc: questions@freebsd.org In-Reply-To: <15304.59469.745740.9242@guru.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 Dear Mike Many thanks for your reply For Q2, could you give me example? Tks a lots --- Mike Meyer wrote: > 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. > > -- > Mike Meyer > http://www.mired.org/home/mwm/ > Q: How do you make the gods laugh? A: Tell them > your plans. __________________________________________________ Do You Yahoo!? Make a great connection at Yahoo! Personals. http://personals.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message