Reset the root password and Changing the hostname (FreeBSD)

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

GT_Rambo

Member
Joined
Feb 13, 2021
Messages
38
Credits
0
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:

Code:
Expand Collapse Copy
fsck -y

mount -u /

mount -a -t ufs

passwd root

reboot


CHANGING THE HOSTNAME



Code:
Expand Collapse Copy
$ hostname
oldhostname

Replace all occurrences of the old host name with the new host name by typing the codes below:

Code:
Expand Collapse Copy
 /etc/rc.conf

 /etc/hosts

Then complete the process with the 'Reboot' command.

Code:
Expand Collapse Copy
$ hostname
newhostname
 
Back
Top