Difference between revisions of "Reset password"
Jump to navigation
Jump to search
m (→For CS side) |
|||
(2 intermediate revisions by one other user not shown) | |||
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. | + | 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. This is a step-by-step guide to how to reset password. Once you are more familiar with LDAP server and its commands, you can manipulate the directories much more freely. For now, this guide will suffice as a basic guide to changing password. |
== For CS side == | == For CS side == | ||
+ | The easiest way is to go to net, become root, then run <code>./change_pass username</code>. | ||
+ | |||
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 | ||
# SSH to net.cs.earlham.edu and sudo to root using command: <tt>sudo su - </tt> | # SSH to net.cs.earlham.edu and sudo to root using command: <tt>sudo su - </tt> | ||
Line 9: | Line 11: | ||
# 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. | # Test the new password by trying to ssh to the machine as the userName using the default password. | ||
+ | |||
== For Cluster side == | == For Cluster side == | ||
Latest revision as of 11:40, 18 June 2019
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. This is a step-by-step guide to how to reset password. Once you are more familiar with LDAP server and its commands, you can manipulate the directories much more freely. For now, this guide will suffice as a basic guide to changing password.
For CS side
The easiest way is to go to net, become root, then run ./change_pass username
.
Use the following steps to change password for a user with the name userName
- SSH to net.cs.earlham.edu and sudo to root using command: sudo su -
- cd to folder /root/ldap-files
- Modify the chg-pw.ldif file by replacing the uid=previousUsername to uid=userName
- Run this command: ldapmodify -f chg-pw.ldif -D "cn=admin,dc=cs,dc=earlham,dc=edu" -W -x
- 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 passwd
- 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
- SSH to hopper.cluster.earlham.edu and sudo to root using command sudo su -
- cd to folder /root/ldap-files
- Modify the chg-pw.ldif file by replacing the uid= previousUsername to uid=userName
- Run this command: ldapmodify -f chg-pw.ldif -D "cn=Manager,dc=cluster,dc=loc" -W
- 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 passwd
- Test the new password by trying to ssh to the machine as the userName using the default password.