passwd command

How to: OpenBSD reset root password

by Vivek Gite on September 19, 2007 · 1 comment

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) [...]

{ 1 comment }

FreeBSD Reset or Recover Root Password

by Vivek Gite on December 6, 2006 · 16 comments

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.

{ 16 comments }

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)

{ 8 comments }

Shutdown Linux Server With Shutdown Account

by Vivek Gite on November 18, 2004 · 5 comments

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:

{ 5 comments }

With the help of utility called chattr, you can changes the file attributes on a Linux second extended file system. The operator + causes the selected attributes to be added to the existing attributes of the files; – causes them to be removed; and = causes them to be the only attributes that the files have.

{ 2 comments }