Results 1 to 2 of 2

Thread: Need help for Sudoers editing

  1. #1
    Join Date
    Jul 2011

    Need help for Sudoers editing


    I'm trying to allow a specific group on my machine to execute one command with sudo without requiring a password, so what I want to do is add something like this to sudoers:

    %groupName ALL = (ALL) NOPASSWD: /bin/bash /path/to/ argument1 argument2

    argument1 needs to be a url :

    argument2 needs to be a path of the form /var/www/demo/SomeFolder/application/config/config.php

    How do I put in a regex form that sudoers will understand ?
    I tried reading the sudoers manual, but it didn't help a lot .

    Any help would be very much appreciated.
    Thank you .

  2. #2
    Join Date
    Apr 2010

    Re: Need help for Sudoers editing

    i'd say to leave sudoers out of that

    %groupName ALL = (ALL) NOPASSWD: /path/to/ should worry about the arguments
    it can't be that hard to do it in bash, unfortunately i'm no good at bash

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts