AnsweredAssumed Answered

[AE9] Login from Agent failed (UNIXCMD)

Question asked by Jessica_Holle_1640 on Sep 14, 2016
Latest reply on Sep 16, 2016 by Jessica_Holle_1640
Hi,

we have a Job with a UNIXCMD wich makes a simple ls.
The server is a member of a Windows Active directory and the uc4-User(named uc4) which starts the Agent is a user of this domain. This works and the Agent runs well. 
Now I want to execute this UNIXCMD (as user uc4) and I get the message The user is unknown or wrong password. PW in login object isn't wrong. Login from commandline via ssh works (for lokalUser and ADUser). 
I tested with a lokal-User and the behaviour is the same. 
The line in the log of the Agent:
20160914/095219.615 - U2003043 Fehler in 'PasswordCheck()'-Aufruf, Fehlercode: ('uc4lokal' - 'operation getpwnam(uc4lokal) is not permitted'')


I think the problem ist that the agent is started from the ad-User.
Has somebody an idea? 


Jessica



Parameters of the ini-file from the agent:
[GLOBAL]
name=RZVDATEN01
system=UC4
logging =../temp/ucxjlx6_l##.txt
logcount=10
helplib=ucx.msl
licence_class=V
language=d,e
[MISC]
[USERID]
[UC_USER]
[FILETRANSFER]
[VARIABLES]
UC_HOST_CODE=UC_CODE
UC_HOST_JCL_VAR=UNIX
UC_EX_PATH_BIN=./
UC_EX_PATH_JOBREPORT=../out/
UC_EX_PATH_TEMP=../temp/
UC_EX_JOB_MD=ucxj???m
[TRACE]
file=../temp/ucxjli6_t##.txt
trccount=10
tcp/ip=9
memory=6
[HOSTS]
[TCP/IP]
port=2300
cp=rzvuc401:2217
[STARTCMD]
[AUTHORIZATION]
KeyStore=
InitialPackage=
[CP_LIST]
2219=rzvuc402
2220=rzvuc402
2218=rzvuc401


getent works (also as user uc4 which started the agent):
root@rzvdaten01:/opt/uc4/agents/unix/temp# getent passwd uc4
uc4:*:101367:100513:uc4:/home/uc4:/bin/bash
root@rzvdaten01:/opt/uc4/agents/unix/temp# getent passwd uc4lokal
uc4lokal:x:1000:100513::/home/uc4lokal:/bin/bash


The UNIXCMD:
:SET &HND_FIND# = PREP_PROCESS(RZVDATEN01, 'UNIXCMD', '*', 'cmd=ls /var/', 'UC_LOGIN=LOGIN.UC4')

Outcomes