How can I allow to run sudoedit built-in command recursively to edit files under specified directories?
Issue
- How can I allow to run buit-in sudoedit recursively to edit files under specified directories?
- For example, when I add the following line in /etc/sudoers, I can edit /tmp/dir1/file1.txt, but I can NOT edit /tmp/dir1/dir2/file2.txt
testuser ALL=(root) sudoedit /tmp/dir1/*
Environment
- Red Hat Enterprise Linux 6
- sudo-1.8.6p3-20.el6_7.x86_64
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
