Article Title: Considerations for file security in the AIX system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
This article mainly discusses how to check the security of files, directories, and executable programs on the AIX system to prevent potential security risks.
1. Delete junk files
After many programs are run, many junk files are left in the/tmp directory. The AIX system provides a command skulker that can delete a. out files, core files, and ed. hup files in the/tmp directory. The specific command execution method is:
# Skulker-p
2. delete an unowned File
On the AIX system, if a user is deleted, the files belonging to the user will become non-owner files. You can use the following command to find these files:
# Find/-nouser-ls
If files are still useful, you can specify them to existing users. Otherwise, these files will be deleted.
3. Manage unauthorized remote access
Some programs use the. rhosts file to access the remote system. However, sometimes this approach is used by unauthorized users. To avoid this problem, you can delete the. rhosts file.
In the HACMP environment, the. rhosts file is required. In this case, you must set the access permission of the. rhosts file to 600, and the owner is root. system.
Run the following command to find the. rhosts file:
# Find/-name. rhosts-ls
4. Monitor the properties of executable files
Before monitoring certain executable files, you need to know how these files are used. In particular, you need to monitor the files whose owner is root and whose format characters include SUID and SGID.
Run the following command to find all files that meet the preceding conditions:
# Find/-perm-4000-user 0-ls
# Find/-perm-2000-user 0-ls
Save the output result of the preceding command. Run these two commands on a regular basis and compare them with the saved results to check whether an unknown file exists, so as to prevent potential security risks.
5. Manage background jobs run by cron and
You must do the following:
-Check that only the root user is in the cron. allow and at. allow files.
-Delete the cron. deny and at. deny files from the var/adm/cron directory.
-Ensure that the owner of cron and at jobs is root and can only be written by root.
The content mentioned above provides guidance on the file security of the AIX system. When considering the security of the AIX system, we should also consider more aspects.