FreeBSD init works different ways. In BSD style, it specifies the kernel security level as follows:
-1: Permanently insecure mode.
0: Insecure mode
1: Secure mode
2: Highly secure mode
3: Network secure mode
You can get current security level (FreeBSD runlevel) using sysctl command:
# sysctl –a | grep kern.securelevel
You can setup new security level in /etc/rc.conf file:
1) Open file in text editor
# vi /etc/rc.conf
2) Add or modify following:
kern_securelevel_enable="YES" # kernel security level
kern_securelevel="2" # range: -1..3 as above
3) Save the changes. Exit and restart FreeBSD.
If init used from command line i.e as a user process, init will emulate AT&T System V UNIX behavior as follows:
0: Halt and turn the power off
1: Go to single-user mode
6: Reboot the machine
c: Block further logins
q: Rescan the /etc/ttys file
1) To halt and turn the power off type:
# init 0
2) You can also use normal halt or shutdown command to shutdown system.
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop











{ 0 comments… add one now }