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

John Doe jdmls at yahoo.com
Tue Sep 20 11:48:16 UTC 2011


From: Sven Aluoor <aluoor at gmail.com>

 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/connectors/zur/namename/current/bin/othername agentsvc
> --i --u root --sn 1m7command' as root on testcentbox07.
> I guess because of wildcard arguments. Does every argument needs a
> *-wildcard? How to do when I don't know the number of arguments?

Tried with -- ?
Maybe replace the last * with [! ]*

JD



More information about the CentOS mailing list