Enable Root login in freebsd

sshd_config
edit the file inside /etc/sshd/sshd_config using your favorite editor.
sshd_config
# Authentication:
#LoginGraceTime 2m
#PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6
to
# Authentication:
#LoginGraceTime 2m
PermitRootLogin yes
#StrictModes yes
#MaxAuthTries 6
now save the file sshd_config and reload ssh service.
root@bsd# /etc/rc.d/sshd reload
Reloading sshd config files.

Read On »

updatedb on freebsd,build locate command database

How to build locate command database in FreeBSD?
If the database has not been built, locate command will show the following error message:
locate: database too small: /var/db/locate.database
You can build/update the database by running ‘locate.updatedb‘ script.
run:
$ /usr/libexec/locate.updatedb

Read On »