Questions and Answers

0 Like 0 Dislike

Mike Burns

hub-in-a-box HUB-INIT-SLAPD changes apps home directory

A warning for others who try to change the apps password using the HUB-INIT-SLAP script.

The file /usr/lib/hubzero/openldap/HUB-INIT-SLAPD included in the hub-in-a-box VM image may cause an issue when submitted jobs. I used a copy of that script to change the default password for various accounts. I just changed the admin_pass in the script and reran it as the existing ldifs embedded in the file would modify the passwords as I wanted. I later discovered that it also changed the homedir for the apps account from /home/muhub/apps/ to /www/myhub/apps.

This caused an issue with job submission. The submit program would never stop running. When I killed it with CTRL-C the monitorJob.log would then show an error like

2010 (4606) ssh -T -x -a -i /opt/submit/.ssh/submit_rsa HUBzero@pbshost.et-test.psu.edu “${HOME}/Submit/monitorsPBS.py” failed w/ exit code 32512
2010 (4606) Could not create directory ‘/www/myhub/apps/.ssh’.^M Failed to add the RSA host key for IP address ‘NNN.NNN.NNN.NNN’ to the list of known hosts (/www/myhub/apps/.ssh/known_hos).^M

Report abuse

Chosen Answer

  1. 0 Like 0 Dislike

    John B Rosheck

    Changing passwords in ldap is best accomplished by running the command:

    ldappasswd -h “localhost” -x -D “cn=admin,dc=myhub,dc=org” -w “Hubbub2010” \ uid=hubrepo,ou=users,dc=myhub,dc=org -s “newpassword”

    This would change the password for the user hubrepo to newpassword. Leaving out the -s “newpassword” option with cause the command to make a new random password and print it out to the console.

    Reply Report abuse

    Please login to answer the question.

0 Responses

No other responses made.

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®