Question & Answer
Question
PROBLEM: I need to track when userA opens a file, as root. I assigned the "files" class to userA, however I never see the FILE_Open for the file, although the user calls su to edit the file.
Why don't I see FILE_Open events for some users?
Answer
- Login user: userA
- Real user: root
|
streammode = on
stream: cmds = /etc/security/audit/streamcmds classes: general = USER_SU,PASSWORD_Change,FILE_Unlink,FILE_Link,FILE_Rename,FS_Chdir,FS_Chroot,PORT_Locked,PORT_Change,FS_Mkdir,FS_Rmdir files = FILE_Open,FILE_Read,FILE_Write,FILE_Close,FILE_Link,FILE_Unlink,FILE_Rename,FILE_Owner,FILE_Mode,FILE_Acl,FILE_Privilege,DEV_Create,File_copy root = general
userA = files |
|
cat /etc/security/audit/streamcmds
/usr/sbin/auditstream | auditpr -htpPrlceR -w > /audit/stream.out &
|
As root:
| su userA -c cat /tmp/opentest |
time process parent real login command event status Wed Aug 05 20:08:16 2020 12845166 12255360 userA root cat FILE_Open OK flags: 67108864 mode: 0 fd: 3 filename /tmp/opentest
|
cat /tmp/opentest
|
Wed Aug 05 20:12:54 2020 8782058 12255360 userA userA cat FILE_Open OK flags: 67108864 mode: 0 fd: 3 filename /tmp/opentest
|
su "-c cat /tmp/opentest"
|
Wed Aug 05 20:14:35 2020 8782064 12255360 userA userA su FILE_Open OK flags: 0 mode: 0 fd: 5 filename /etc/security/user Wed Aug 05 20:14:35 2020 8782064 12255360 userA userA su FILE_Open OK flags: 0 mode: 0 fd: 5 filename /etc/security/user Wed Aug 05 20:14:35 2020 8782064 12255360 root userA su USER_SU OK root
| SUPPORT |
|---|
|
Security configuration involves comprehensive features. Most of these features require advanced review and planning by administrators who are familiar with all of their system requirements. AIX Support does not make specific recommendations to harden your system. Customization is out of the scope of AIX Support, but if you have specific questions about documented usage, our support experts are happy to assist.
You can learn more about the audit functionality on AIX and best practices through the following resources:
If you have specific questions about usage after reviewing the recommended documentation, IBM AIX Support will be happy to assist. If you require consulting services, there are more fee-based services available.
If you require usage assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract.
1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. - For guidance, see: Working with IBM AIX Support: Describing the problem
5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For guidance, see: Working with IBM AIX Support: Collecting snap data |
Related Information
Was this topic helpful?
Document Information
Modified date:
25 May 2023
UID
ibm16323281