Saturday, March 1, 2008

:: increasing and lowering kernel securelevel in FreeBSD ::

1. to increase kernel securelevel just type:
sysctl kern.securelevel=1
OR
sysctl kern.securelevel=2
and so on

the results will be:
# sysctl kern.securelevel=1
kern.securelevel: -1 -> 1

# sysctl kern.securelevel=2
kern.securelevel: 1 -> 2

2. to lower the secure level you'll need to write the commands in /etc/rc.conf and have your machine rebooted

edit /etc/rc.conf and put these entries:
kern_securelevel_enable="YES"
kern_securelevel="-1"
# this is just an example to lower the securelevel to -1

and reboot

2 comments:

Anonymous said...

Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the Monitor de LCD, I hope you enjoy. The address is http://monitor-de-lcd.blogspot.com. A hug.

radius™ said...

well... hello stranger!

// stats


afraid.org / freedns.afraid.org