I'm trying to block a script from executing by any user using sudoers file. This is what I tried:
visudo user ALL=!<script_path> root ALL=!<script_path> I tried even creating a command alias as below:
Cmnd_Alias SCRIPT = <script_path> User_Alias GROUPONE = root GROUPONE ALL = NOEXEC: SCRIPT But still when I execute it is working fine. Even the above didn't work. Can I get any help in blocking the script via sudoers.
1 Answers
Answers 1
To give permissions for any command, we can follow this link.
To block the user, ask for a password to execute a file.
0 comments:
Post a Comment