Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 5. Authorization Controls > Prohibiting Command Arguments with sudo

Recipe 5.9. Prohibiting Command Arguments with sudo

5.9.1. Problem

You want to permit a command to be run via sudo, but only without command-line arguments.

5.9.2. Solution

Follow the program name with the single argument "" in /etc/sudoers:


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint