Getting error U02000102 - function getpwnam '1-Operation not permitted' when running filetransfer in Linux agent
Release : 12.2, 12.3
Component : AUTOMATION ENGINE
The function getpwnam is used for checking the user's password which should require access to /etc/shadow (a text file that contains information about the system's users' password. It is owned by user root & group shadow with 640 permissions).
In this case, the agent is started by user <username> which should not have had sufficient permissions, hence the error happened.
The solutions for this are either:
- Starting agent via root user. or
- Enable PAM (the pam library pam_unix.so can automatically check password by calling /sbin/unix_chkpwd). or
- set login_check=no in agent's ini and ANONYMOUS_JOB=Y in UC_HOSTCHAR_xxx on client 0, which should enable anonymous executions of job (not checking password)