[sudo-users] sudo problems with internal shell command
Jeff Makey
jeff at sdsc.edu
Wed Feb 10 16:05:11 EST 2010
Aaron Lewis wrote:
>sudo echo disable > /proc/acpi/ibm/bluetooth
>
>Permission is denied.
>I think it's because 'echo' is run in shell , as normal user , then it
>fails to run.
No, it is the ">" redirection that runs without the privileges gained
via sudo.
>This works fine:
>sudo su - -c 'echo disable > /proc/acpi/ibm/bluetooth'
>
>Anyway to solve it ?
That *is* the solution.
:: Jeff Makey
jeff at sdsc.edu
More information about the sudo-users
mailing list