0

I would like to give for specific user allowing to put tabulator as parameter to program. Full invoking looks like:

sudo /sbin/vgs --units b --nosuffix --noheadings --separator 'TAB'

I try to put it like:

user ALL=(ALL) NOPASSWD: /sbin/vgs --units b --nosuffix --noheading --separator 'TAB'

(TAB is of course tabulator character). Unfortunly - it doesn't work - sudo ask for password and doesn't recognize command. When i ommit 'TAB' section - it works fine. Problem is both with TAB character, and with '. How to avoid it and allow puting tabulator as parameter?

0

1 Answer 1

2

I propose to put the command into a shell script and just give sudo rights for this script. Just make sure the users aren't allowed to edit it.

1
  • it's good workaround - but - only workaround ;)
    – undefine
    Jun 14, 2015 at 20:31

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .