When creating swap file, set permission bits to ensure its safety.

Submitted by:	Howard Goldstein <hgoldste@bbs.mpcs.com>
This commit is contained in:
Warner Losh 1999-02-19 10:46:11 +00:00
parent b9cc4a9f4f
commit 89314826cb
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=4360

View file

@ -1,4 +1,4 @@
<!-- $Id: admin.sgml,v 1.19 1999-02-08 06:53:37 jkoshy Exp $ -->
<!-- $Id: admin.sgml,v 1.20 1999-02-19 10:46:11 imp Exp $ -->
<!-- The FreeBSD Documentation Project -->
<sect>
@ -464,6 +464,12 @@
dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
</verb>
<item>set proper permissions on (<tt>/usr/swap0</tt>)
<verb>
chmod 0600 /usr/swap0
</verb>
<item>enable the swap file in <tt>/etc/rc.conf</tt>
<verb>