≡ Menu

passwd command

Change the Password in UNIX

How do I change the password in UNIX?
[click to continue…]

Delete SSH Keys

One my user leaves the office and I'd like to disable her access to our UNIX / Linux system. How do I delete ssh key from the UNIX systems so that user can not log in?
[click to continue…]

Redhat Linux: Change User Password

How do I change password under Redhat Enterprise Linux?
[click to continue…]

UNIX Create User Account

How do I create a user account under UNIX operating system and assign a password to user account so that he / she can login into server or UNIX workstation?
Answer to “UNIX Create User Account”

By default base directory for the system user is set to /home directory. I'd like to add user to /iscsi/home/${user} directory instead of the default /home. How do I force useradd command to add user to /iscsi/home under CentOS / RHEL / Fedora Linux server?
[click to continue…]

Solaris UNIX: Change Default Shell

How do I change default ksh shell to bash shell under Solaris / OpenSolaris UNIX operating system using command line options?
[click to continue…]

Linux: Resetting a user’s password

Q. How do I reset a user's password under any Linux distribution from command prompt?

A. To reset a user's password, use passwd command. You have to change it to a different password.

Login as the root user

Open terminal or shell prompt

Type the following command:
# passwd username
For example, reset a tom's password, enter:
# passwd tom
Type a new password twice.