Re: [CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?

2011-09-21 Thread John Doe
From: Sven Aluoor > On Tue, Sep 20, 2011 at 1:48 PM, John Doe 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:

Re: [CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?

2011-09-21 Thread Sven Aluoor
On Tue, Sep 20, 2011 at 1:48 PM, John Doe wrote: > Tried with -- ? > Maybe replace the last * with [! ]* doesn't work. Any other idea? ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?

2011-09-20 Thread John Doe
From: Sven Aluoor  I allow the user tommy to run this command as root > sudoCommand: /app/appname/connectors/*/*/current/bin/* > $ sudo /app/appname/connectors/zur/namename/current/bin/othername > agentsvc --i --u root --sn 1m7command > Sorry, user tommy is not allowed to execute > '/app/appname/

[CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?

2011-09-20 Thread Sven Aluoor
Hi folks I allow the user tommy to run this command as root sudoCommand: /app/appname/connectors/*/*/current/bin/* With "sudo -l" he sees the sudoers, but is unable to execute. $ sudo /app/appname/connectors/zur/namename/current/bin/othername agentsvc --i --u root --sn 1m7command Sorry, user to