This document provides information on how to edit folders in the /etc path with sudo rules.
Since the /etc path requires root permissions to be accessed, it is necessary to use the Sudo Rules feature to address this requirement.
- 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 General.
- 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 Yes to enable the rule.
- In the Commands for rule application (must be used the full path) * field, enter the following command:
/usr/bin/nano /etc/folder_path.InfoYou can use other text editor commands according to your Linux distribution.
- In the It should be NOPASSWD? * field, select to ask or not the user to enter their password.
5. In the Should it be FOLLOW? * field, select to be able to edit symbolic links.
6. In the Should it be SETENV? * field, select to be able to set system parameters.
7. Optional: In the Description field, enter a brief description of this rule. - Click Save.