-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retrieved "hostkey.pem" seems to be undecrypted when installing from source #127
Comments
Got it! I checked the source below. /* host credentials should not be encrypted */
if (getuid() == 0) {
SSL_CREDENTIALS *creds;
creds = ssl_credentials_new();
ssl_private_key_load_from_file(creds, keyfile,
client_request->passphrase, NULL);
ssl_private_key_store_to_file(creds, keyfile, NULL);
ssl_credentials_destroy(creds);
} It seems the The official doc suggests not to user root for installation from source. However, the problems I faced seems to tell the GCT should be configured as root user. What should I do? |
Hi, |
Thank you @msalle . I managed to launch globus-gatekeeper with non-root user but the gatekeeper service couldn't run jobs. See log below:
The globus-job-manager got stuck at the bottom line. The output from
I understand the gatekeeper running as a non-root user could not execute command as another user. However, it seems the gatekeeper even could not execute command as itself. So the gatekeeper service has to be launched as root user anyway. |
Hi,
The exception is if you run the https://gridcf.org/gct-docs/latest/gram5/pi/index.html#gram5-cmd-globus-personal-gatekeeper which is certainly not what you want to do. Conclusion: run the gatekeeper as root and make sure the private key for the hostcert has no passphrase. By the way, I thought you are using the EPEL packages, or do you have problems with the gatekeeper package? |
@msalle Thanks for your explain. The "confusion" showed me the possibility that installing, running GCT as same non-root user works, where all grid users were mapped to that non-root user and all grid jobs were executed as that user. That's why I tried to compile GCT myself. If it's true, GCT would be more flexible for less permission need. And all developers need to do is writing the logic that if the gatekeeper is running as non-root user and the grid job wants to be executed as same user, gatekeeper would fork a process and execute job directly instead of using Since the issue's solved, I just close it. Further communication could go on. :D |
Hi guys.
I cloned latest GCT source 4b1ec65 and installed GCT using a non-root user
gct
to path/usr/local/gct6
.Configuring non-standard installation GCT instance was hard and I got stuck when launching globus-gatekeeper, which was caused by undecrypted
hostkey.pem
.The error was:
After long time search, I found solution from mail list Re: [gt-user] Problem with globus-gatekeeper by using command
openssl rsa -in /etc/grid-security/hostkey.pem -out /etc/grid-security/hostkey.pem
to remove the password.It worked and I managed to launch globus-gatekeeper. I don't know if there would be more problems but it was a temporary work-around.
I don't know what exactly happened but the
myproxy-retrieve
command might be the root cause.Hope you could give me some hints :D
Thanks
The text was updated successfully, but these errors were encountered: