2 Replies Latest reply on Apr 20, 2012 5:41 AM by 813947

    how to configure sudo for particular command with arugment

    924568
      Hi All,

      I need to configure sudo for a below activity, Its working fine

      User_Alias NOC_L1_USER = baj33, edg246
      Host_Alias NOC_L1_HST = ch02520
      Cmnd_Alias NOC_L1_CMD = /bin/su - root -c /usr/bin/dsmc q backup "*"
      NOC_L1_USER NOC_L1_HST = NOPASSWD: NOC_L1_CMD


      But in that the danger thing is the user can able use restore argument also "/usr/bin/dsmc restore source target"

      Can someone help me how to use this particular command /usr/bin/dsmc q backup "*" alone ?

      Thanks,
      Senthilkumaran G