Please forgive me, but I am not a Unix expert. I'm supporting SAP r/3 and we are trying to run an external command from SAP to read a file at the unix level. When we perform the more command on the following two files, we are succesful in reading the bws file, but unsucessful in reading the bws1 file.
The user running the more command is sidadm. sidadm is defined in both the sapdata and siddata group. Any idea why we cannot read the second file?
If we change the owner of bws1 to sidadm, we can read the file. If we change the group to sapdata, we can read the file. Is it possible for a group to have 'corrupt' data in it?
We don't have a lot of AIX members around I guess. But I'll take a shot in the dark based on general unix knowledge.
My best guess is that you're wrong in saying that user is a member of both groups. Try running the "groups" command (if AIX has one). It should display your group memberships.
Thank you for responding. I checked both groups and the user id defined in both. The only difference I notice in the groups is that the Administrator List is defined as ROOT in the group that is NOT working, and blank in the group that is working. Do you know if this has any relevance?
When I run the groups command on both groups I get the following message:
The specified user is not known.
Check the /etc/passwd file for all known users.
My apologies, I was using the command incorrectly. When I perform the groups command I see the following on that user:
> groups sidam
sapdata staff siddata
Of note, when reading this file from the Unix level, I can read both files as user sidadm. It's only when trying to read it from SAP via an external command to Unix that I recieve this error. The vendor believes it is a unix problem.
I can perform the ls -l command on both files successfullly via SAP. Also, when I perform a whoami command via sap, sidadm is returned as the user. I'm stumped.....