Writer instructions | |
---|---|
Page title | For most spaces, this page must be titled Space announcements. For spaces with localized content, this page must be titled Space announcements l10n. |
Purpose | Provide an announcement banner on every page of your space. |
Location | Move this page outside of your home branch. |
Guidelines |
Viewing Files with SUID or SGID Permissions
This task describes how to view a list of files that have the set user ID (SUID) or set group ID (SGID) permission set. With this permission, the file can set its own user ID or group ID, respectively, regardless of the owner or group to which the owner belongs.
Before you begin
To perform this task, you must provide a user account and password. It does not have to be the root account.
To View a List of Files with SUID and/or SGID Permissions
- Access the SECURITY application menu as described in Accessing KM Commands and InfoBoxes.
- Select Administration > List SUID and SGID Files BMC PATROL prompts you for a user account and password.
SECURITY User Name and Password Dialog Box
Type the appropriate user name and password and click OK. BMC PATROL displays the Find SUID/SGID Files Like dialog box.
Find SUID/SGID Files Like Dialog Box Define the search criteria. The search is a logical AND operation that returns only files that match all the criteria defined by the following fields.
- Click Find.
BMC PATROL builds a search expression, searches the system for files that match the criteria, and writes the results to a BMC PATROL task object (List SUID and SGID Files) in the UNIX OS container. - Access the List SUID and SGID Files task object as described in Accessing KM Commands and InfoBoxes and view the results. Your results should resemble this example:
<NOT INTERACTIVE>
List SUID and SGID Files
Begin: find /oracle/empdata/payroll \( -perm -004000 -o -perm -002000 \) -exec ls -ld {} \;
-rwsr-sr-x 1 3Supvr admin 129 Jun 20 14:38 /oracle/empdata/payroll/may_2001
-------------------- >>>>> DONE <<<<< --------------------
Output Format
The output has the following format. Following table describes each expression.
-rwsr-sr-- # <username> <group> ### MMM DD hh:mm <path>/<file_name.ext>
-------------------- >>>>> DONE <<<<< --------------------
Find Files Like Command Output Format
Search Expression | |
---|---|
Begin: find | Find command |
/path | Starting point for search |
- name <text?*> | File name pattern |
- perm -00400 -o -perm -002000 | Defines the permissions of files that the find command looks for |
-exec ls | Lists the contents of the specified directory |
-ld | Options for the ls command: -l long format listing, -d list only the directory names and not its contents |
{ } | Argument that substitutes current file |
List of Files | |
-rwsr-sr-- | File permissions |
| Number of links to the file |
username | Owner of the file |
dev | Group of owner |
| Size in bytes |
MMM DD hh:mm | Date-time stamp |
location | Path and file name |
Related topics
Viewing-Files-with-Global-Write-Privileges
Viewing-Users-that-Failed-to-Execute-su-msu-Commands