This document provides information on how to allow any user to run the cat command as sudo on a specific device.
- In the Segura® Platform, in the navigation bar, hover over the Products menu and select EPM.
- In the side menu, select Policies > Linux > Sudo Rules.
- In the Rules for sudo report, click Add and select Device.
- In the Registration rules for sudo screen, enter the following information:
- In the Identification name * field, enter a name to identify the rule.
- In the Enabled * field, select to enable or disable the rule.
- In the Commands for rule application (must be used the full path) * field, enter the following path:
/usr/bin/cat. - In the It should be NOPASSWD? * field, select to ask or not the user to enter their password.
- In the Should it be FOLLOW? * field, select to use symbolic links.
- In the Should it be SETENV? * field, select to allow the command to set environment variables.
- Optional: In the Description field, enter a brief description of the rule.
- Click Continue.
- In the Devices tab, click + Add to select the devices where the sudo rule will be applied.
- Select the desired devices and click Add.
- Click Continue.
- In the Review tab, review the sudo rule and click Save.