Difference between revisions of "Reset password"

From Earlham CS Department
Jump to navigation Jump to search
Line 1: Line 1:
 +
Resetting password is a very common issue asked frequently by the users. Therefore, it is essential to know the basics of how to reset a user's password to the default password (123.abc) when needed.
 
== For CS side ==
 
== For CS side ==
 
Use the following steps to change password for a user with the name userName
 
Use the following steps to change password for a user with the name userName
Line 7: Line 8:
 
# Enter the LDAP password for CS when prompted
 
# Enter the LDAP password for CS when prompted
 
# The password when trying to ssh to userName@home.cs.earlham.edu will be 123.abc (default). The user can change it using command <tt>passwd</tt>
 
# The password when trying to ssh to userName@home.cs.earlham.edu will be 123.abc (default). The user can change it using command <tt>passwd</tt>
 
+
# Test the new password by trying to ssh to the machine as the userName using the default password.
 
== For Cluster side ==
 
== For Cluster side ==
  
Line 17: Line 18:
 
# Enter the LDAP password for Cluster when prompted
 
# Enter the LDAP password for Cluster when prompted
 
# The password when trying to ssh to userName@hopper.cluster.earlham.edu will be 123.abc (default). The user can change it using command <tt>passwd</tt>
 
# The password when trying to ssh to userName@hopper.cluster.earlham.edu will be 123.abc (default). The user can change it using command <tt>passwd</tt>
 +
# Test the new password by trying to ssh to the machine as the userName using the default password.

Revision as of 22:43, 17 January 2017

Resetting password is a very common issue asked frequently by the users. Therefore, it is essential to know the basics of how to reset a user's password to the default password (123.abc) when needed.

For CS side

Use the following steps to change password for a user with the name userName

  1. SSH to net.cs.earlham.edu and sudo to root using command: sudo su -
  2. cd to folder /root/ldap-files
  3. Modify the chg-pw.ldif file by replacing the uid=previousUsername to uid=userName
  4. Run this command: ldapmodify -f chg-pw.ldif -D "cn=admin,dc=cs,dc=earlham,dc=edu" -W -x
  5. Enter the LDAP password for CS when prompted
  6. The password when trying to ssh to userName@home.cs.earlham.edu will be 123.abc (default). The user can change it using command passwd
  7. Test the new password by trying to ssh to the machine as the userName using the default password.

For Cluster side

Use the following steps to change password for a user with the name userName

  1. SSH to hopper.cluster.earlham.edu and sudo to root using command sudo su -
  2. cd to folder /root/ldap-files
  3. Modify the chg-pw.ldif file by replacing the uid= previousUsername to uid=userName
  4. Run this command: ldapmodify -f chg-pw.ldif -D "cn=Manager,dc=cluster,dc=loc" -W
  5. Enter the LDAP password for Cluster when prompted
  6. The password when trying to ssh to userName@hopper.cluster.earlham.edu will be 123.abc (default). The user can change it using command passwd
  7. Test the new password by trying to ssh to the machine as the userName using the default password.