Sven Aluoor
2011-Sep-20 10:37 UTC
[CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?
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 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? cheers Sven
John Doe
2011-Sep-20 11:48 UTC
[CentOS] sudo wildcards problem: for every argument a *-wildcard? Better solution?
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
Seemingly Similar Threads
- One step way to create data frame with variable "variable names"?
- ldif invalid per syntax
- OT: programming language for morons (newbie friendly language in Open Source world)
- sssd_sudo search results different from command line ldapsearch
- How to manipulate ldap access rights on Samba 4?