Password Info

This section will provide the information related password information.



Set User Password

Type the following command to change your own password

passwd

Sample Output:

[[email protected] ~]$ passwd
Changing password for koompi.
Current password: 
New password: 
Retype new password: 
passwd: password updated successfully

The user is first prompted for his/her old password if one is present. This password is then encrypted and compared against the stored password. The user has only one chance to enter the correct password.

The superuser is permitted to bypass this step so that forgotten passwords may be changed. A new password is tested for complexity. As a general guideline, passwords should consist of 10 to 20 characters including one or more** from each of the following sets:

  1. Lower case alphabetic
  2. Upper case alphabetic
  3. Digits 0 to 9
  4. Punctuation marks/special characters

Changing Password For Other User Account

You need to login as the root user. To go into the root, type the following command to change the password for User_Name:

sudo passwd <USER_NAME>

Sample Output:

[[email protected] ~]$ sudo passwd koompi
New password: 
Retype new password: 
passwd: password updated successfully

Where, koompi – is username or account’s name.

Changing Group Password

When the -g option is used, the password for the named group is changed. In this example, change the password for the group:

    passwd -g Group_Name

The current group password is not prompted for. The -r option is used with the -g option to remove the current password from the named group. This allows group access to all members. The -R option is used with the -g option to restrict the named group for all users.

Changing User Passwords

As a KOOMPI OS or Linux system administrator (sysadmin), you can change the password for any users on your server. To change a password on behalf of a user:

  1. First sign on or “su” or “sudo” to the “root” account on KOOMPI OS, run: sudo -i
  2. Then type, passwd Administrator_name to change a password for Admin user
  3. The system will prompt you to enter a password twice