[e-users] Réf. : Re: [e-users] cpufreq module and rights

2005-12-05 Thread Laurent . LAFFONT-ST

I have used the breezy packages by shadoi on my laptop, so it's a packaging problem. And now it works well with suid root. 

Laurent Laffont 







Carsten Haitzler (The Rasterman) <[EMAIL PROTECTED]>
Envoyé par : [EMAIL PROTECTED]
02/12/2005 17:52

        
        Pour :        [EMAIL PROTECTED]
        cc :        enlightenment-users@lists.sourceforge.net
        Objet :        Re: [e-users] cpufreq module and rights


On Fri, 2 Dec 2005 16:24:06 +0100 [EMAIL PROTECTED] babbled:

> Hi,
>
> I have a message error with cpufreq module when trying to change the cpu
> freq governor. I've seen in the source code that the module directly write
> into /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor , but this file
> is accessible only by root. Are you all working as root or is there a
> another way  to make it work correctly ?

the makefile explicitly makes the cpufreq utility executable siod root - for
some reason this is not working for you. see Makefile.am in the cpufreq module
dir.

--
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)    [EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

---
Alcatel Vacuum Technology has a new brand name : Adixen - http://www.adixen.com



Re: [e-users] cpufreq module and rights

2005-12-02 Thread The Rasterman
On Fri, 2 Dec 2005 16:24:06 +0100 [EMAIL PROTECTED] babbled:

> Hi,
> 
> I have a message error with cpufreq module when trying to change the cpu 
> freq governor. I've seen in the source code that the module directly write 
> into /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor , but this file 
> is accessible only by root. Are you all working as root or is there a 
> another way  to make it work correctly ?

the makefile explicitly makes the cpufreq utility executable siod root - for
some reason this is not working for you. see Makefile.am in the cpufreq module
dir.

-- 
- Codito, ergo sum - "I code, therefore I am" --
The Rasterman (Carsten Haitzler)[EMAIL PROTECTED]
裸好多
Tokyo, Japan (東京 日本)


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] cpufreq module and rights

2005-12-02 Thread Mathieu Segaud
y
* [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote:
> Hi,
> 
> I have a message error with cpufreq module when trying to change the cpu 
> freq governor. I've seen in the source code that the module directly write 
> into /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor , but this file 
> is accessible only by root. Are you all working as root or is there a 
> another way  to make it work correctly ?

no no no, NEVER use root as a user account :)
you have to setuid the freqset utility e installs in the module subdirectory
# chmod u+s freqset
This way whenever it is executed, it is executed as its owner, root, not as its
real user, you.
but some see it as a security hazard
To avoid sec problems, I set it to r-s--x--x rights and it is owned by root.


Mathieu

-- 
Linux is organic.  Its not cleanly laid out.  Its not specified in some 
document.  Linux is result of evolution as "nature" as dictated.  This 
drives some people nuts, but at the end of the day, it _works_.

Jeff Garzik, on LKML


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


[e-users] cpufreq module and rights

2005-12-02 Thread Laurent . LAFFONT-ST

Hi,

I have a message error with cpufreq module when trying to change the cpu freq governor. I've seen in the source code that the module directly write into /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor , but this file is accessible only by root. Are you all working as root or is there a another way  to make it work correctly ?

Thank you !

Laurent Laffont