[CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?
John Doe
jdmls at yahoo.comWed Sep 21 16:03:12 UTC 2011
- Previous message: [CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?
- Next message: [CentOS] PDF Reader/Editor for CentOS 5.7 (32 bit)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: Sven Aluoor <aluoor at gmail.com> > On Tue, Sep 20, 2011 at 1:48 PM, John Doe <jdmls at yahoo.com> wrote: >> Tried with -- ? >> Maybe replace the last * with [! ]* > doesn't work. Any other idea? I tried the following in /etc/sudoers: myuser ALL=/o*/te* And cat /opt/test #!/bin/bash echo "$*" touch /root/test Then: $ sudo /opt/test agentsvc --i --u root --sn 1m7command agentsvc --i --u root --sn 1m7command With a /root/test file appearing. Seems to work fine... JD
- Previous message: [CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?
- Next message: [CentOS] PDF Reader/Editor for CentOS 5.7 (32 bit)?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list