Date: Tue, 16 Oct 2001 13:18:06 -0500 From: Mike Meyer <mwm@mired.org> To: ann kok <annkok2001@yahoo.com> Cc: Mike Meyer <mwm@mired.org>, questions@freebsd.org Subject: Re: tmp security Message-ID: <15308.31198.430727.873469@guru.mired.org> In-Reply-To: <20011016152941.21060.qmail@web20110.mail.yahoo.com> References: <15304.59469.745740.9242@guru.mired.org> <20011016152941.21060.qmail@web20110.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
ann kok <annkok2001@yahoo.com> types: > Dear Mike > > Many thanks for your reply > > For Q2, could you give me example? There are partial examples in the manual page. <mike > > --- Mike Meyer <mwm@mired.org> wrote: > > ann kok <annkok2001@yahoo.com> 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 > > -- > > Mike Meyer <mwm@mired.org> > > 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 > -- Mike Meyer <mwm@mired.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?15308.31198.430727.873469>