RESET THE ROOT PASSWORD:
At startup, we select the "Boot Single User" option from the boot screen by pressing 2 and boot the system.
View attachment 5901
Then we reset the root password by following the steps below:
CHANGING THE HOSTNAME
Replace all occurrences of the old host name with the new host name by typing the codes below:
Then complete the process with the 'Reboot' command.
At startup, we select the "Boot Single User" option from the boot screen by pressing 2 and boot the system.
View attachment 5901
Then we reset the root password by following the steps below:
Code:
fsck -y
mount -u /
mount -a -t ufs
passwd root
reboot
CHANGING THE HOSTNAME
Code:
$ hostname
oldhostname
Replace all occurrences of the old host name with the new host name by typing the codes below:
Code:
/etc/rc.conf
/etc/hosts
Then complete the process with the 'Reboot' command.
Code:
$ hostname
newhostname


