Skip to content

acct_mgmt failed no jobs  #4

@zhouzhuoCSUFT

Description

@zhouzhuoCSUFT

Hello, I have compiled pam_lsf.so, but cannot ssh compute node when it has jobs ,the secure log is :

Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: argv[0] = debug
Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: argv[1] =  LSF_ENVDIR=/opt/ibm/lsfsuite/lsf/conf
Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: argv[2] = LSF_SERVERDIR=/opt/ibm/lsfsuite/lsf/10.1/linux2.6-glibc2.3-x86_64/etc
Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: comparing cluster admin lsfadmin
Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: comparing cluster admin root
Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: initializing LSF
Apr 15 12:26:03 c001 sshd[15509]: pam_lsf.so: checking LSF user=test hostname=c001
Apr 15 12:26:15 c001 sshd[15509]: pam_lsf.so: acct_mgmt failed no jobs for (test)

I added a syslog code
image

There secure log is

Apr 15 12:19:56 c001 sshd[14499]: pam_lsf.so: comparing cluster admin lsfadmin
Apr 15 12:19:56 c001 sshd[14499]: pam_lsf.so: comparing cluster admin root
Apr 15 12:19:56 c001 sshd[14499]: pam_lsf.so: initializing LSF
Apr 15 12:19:56 c001 sshd[14499]: pam_lsf.so: checking LSF user=test hostname=c001
Apr 15 12:19:56 c001 sshd[14499]: jobs = -1
Apr 15 12:19:58 c001 sshd[14499]: jobs = -1
Apr 15 12:20:00 c001 sshd[14499]: jobs = -1
Apr 15 12:20:02 c001 sshd[14499]: jobs = -1
Apr 15 12:20:04 c001 sshd[14499]: jobs = -1
Apr 15 12:20:06 c001 sshd[14499]: jobs = -1
Apr 15 12:20:28 c001 sshd[14499]: pam_lsf.so: acct_mgmt failed no jobs for (test)
Apr 15 12:20:28 c001 sshd[14499]: fatal: Access denied for user test by PAM account configuration [preauth]
  1. I suspect the lsb_openjobinfo() function didn't read jobs
  2. I compared the lsbatch.h file with the other cluster and found a significant difference

Thanks for your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions