When creating swap file, set permission bits to ensure its safety.
Submitted by: Howard Goldstein <hgoldste@bbs.mpcs.com>
This commit is contained in:
parent
b9cc4a9f4f
commit
89314826cb
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=4360
1 changed files with 7 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue