7 articles tagged "passwd command"
- How to: OpenBSD reset root password
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) Run passwd command
d) [...] - FreeBSD reset or recover root password
With FreeBSD 5.4 and above the booting procedure is slightly changed. Under ilder version of FreeBSD use boot -s option at Ok prompt.
However, with version FreeBSD 5.4+ you don’t have to type any command. Here is the procedure to boot FreeBSD into a single user mode to reset root password.
In this tip I will [...] - FreeBSD: Password expiry / aging policy
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 mod USERNAME [...] - How to: Recovering Linux grub boot loader password
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 following method/Procedure:
* Use Knoppix cd
* Remove password from Grub configuration file
* Reboot system
* Change root password
* Setup new Grub password if required (optional)
Knoppix Live cd
The best way to recovering (or [...] - Search for all account without password and lock them
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 [...] - Shutdown account to shutdown Linux server
Have you ever wondered why shutdown account exists on Linux server (especially in Red Hat Linux distribution)?
The answer is quite simple - shutdown account can shutdown server. Here is the simple procedure to use shutdown account to halt Linux server:
1) Setup password for shutdown account:
# passwd shutdown
2) Add access to shutdown –h now via [...] - Linux Password trick with immutable bit using chattr command
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 [...]
Viewing 1-7 of 7 posts. ( see all popular tags )


Recent Comments
Yesterday ~ 38 Comments
Yesterday ~ 1 Comment
Yesterday ~ 1 Comment
06/16/2008 03:23 pm ~ 3 Comments
Yesterday ~ 3 Comments