[ltp] ACPI problem ...

Elliot F linux-thinkpad@linux-thinkpad.org
Mon, 28 Feb 2005 10:49:06 -0800


Romuald,

If you want to use sudo, and you have access to use sh as sudo (which may be 
locked down):

$ sudo /bin/sh -c "/bin/echo 'on' > light"

It works fine, assuming you have sudo access to sh.

Elliot

Romuald Fleury wrote:
> My god, ...
> 
> Thx, i learned an important thing today :)
> 
> 
> Uwe Walter a écrit :
> 
>> On Fr, 2005-02-25 at 13:35 +0100, Romuald Fleury wrote:
>>  
>>
>>> When i try to change content of /proc/acpi/ibm files, system says i 
>>> do not have the permission ( as root ... )
>>>   
>>
>>
>> As root or with sudo?
>>
>> Try it as root, stdout redirection in combination with sudo is not
>> trivial AFAIK.
>>
>>
>> Greetings, UW(e)
>>
>>
>>  
>>
>