sudoedit restrict allowed file changes
LE BOUTER Leo <[email protected]> Thu, 26 Mar 2020 14:14:18 +0000
| Newsgroups | gmane.comp.tools.sudo.user |
|---|---|
| Message-ID | <793937D9F3A7EA49BCD7227F32C8138BB42E1A@BBS-EXCMBX-P005.wprod.ds.aphp.fr> |
Hello, I am using sudoedit to allow a specific user to edit the configuration of rsyslog. However, I am worried that some of the configuration parameters of rsyslog allows them to gain privileges on the system. Is there a way one can restrict the changes that are allowed in the configuration file? For example, changes could be passed through a regex, or an arbitrary validation script, before replace. Also maybe giving up on sudoedit and creating a shell script that performs the required changes and allowing access through sudo is the solution here? Though I'm also worried about the security of shell scripts themselves. Please advice, Thanks Leo Le Bouter Ingenieur Securite Infrastructure Entrepot de Donnees de Sante (WIND) ____________________________________________________________ sudo-users mailing list <[email protected]> For list information, options, or to unsubscribe, visit: https://www.sudo.ws/mailman/listinfo/sudo-users