If you forgot your root password, you can simply reset it. The general procedure for resetting password is as follows (if you are a Linux user, see how to reset Linux root password): a) At boot> prompt force openbsd to boot into a single user mode b) Next mount file system in read-write mode c) [...]
With FreeBSD version 5.4 and above the booting procedure is slightly changed. The older version of FreeBSD uses the boot -s option at Ok prompt. However, with FreeBSD version FreeBSD 5.4+ you don’t have to type any commands. Here is the procedure to boot FreeBSD into a single user mode to reset root password.
For security reason you must enable Password expiry policy on FreeBSD box. Linux comes with chage command, which changes the number of days between password changes and the date of the last password change. FreeBSD pw command Use pw command to setup password expiry date for existing user account. Syntax is as follows: pw user [...]
If you have, a password protected grub boot loader and you forgot both root and grub password, then you can recover grub-boot loader password using the following method/procedure:
* Use Knoppix cd
* Remove the password from Grub configuration file
* Reboot the system
* Change the root password
* Setup new Grub password if required (optional)
You may delete a file called /etc/shadow. If you try to boot into a single user mode, system will ask for the maintenance root password. Now imagine this, you do not have a backup of /etc/shadow file. How do you fix such problem in a production environment where time is a critical factor? I will explain how to recover a deleted /etc/shadow file in five easy steps.
For security, reason it is necessary to disable all account(s) with no password and lock them down. Solaris, Linux and FreeBSD provide account locking (unlocking) facility. Lock Linux user account with the following command: passwd -l {user-name} For unlocking the account use: passwd -u {user-name} -l : This option disables an account by changing the [...]
Have you ever wondered why shutdown account exists on Linux server, especially under Red Hat Enterprise Linux distribution?
The answer is quite simple – shutdown account can shutdown server. Here is how you can enable the shutdown account: