On UNIX like system root rights are defined by the user id (which is 0 for the root user). I will offer two preferable options first.
1. Switching to root user
If you want to become the root user for the current session only a
$ sudo su
should be sufficient.
2. Disabling sudo password check
You can edit the sudoers file using
$ sudo visudo
, append the following line and save the file.
msfadmin ALL=(ALL) NOPASSWD: ALL
Note: if the visudo command uses an unwanted editor you can use (replacing nano by the editor you want to use):
$ EDITOR=nano sudo visudo
3. Setting user id to 0
I would really not recommend this way but to make msfadmin a root user change its user id to 0.
$ sudo nano /etc/passwd
, change the line starting with msfadmin to
msfadmin:x:0:0:msfadmin,,,:/home/msfadmin:/bin/bash
and reboot.