The Following User Says Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-04-20
, 13:41
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#22
|
There's a package in -devel that somehow enables sudo to work (I'm not sure if it's cause I changed the password for user, or the pass for root).
If you want to try to see which application it is be my guest.
Edit: it's one of these http://pastebin.com/1mA5JbHF
![]() |
2010-04-21
, 20:30
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#23
|
![]() |
2010-04-21
, 20:56
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#24
|
Hey all..
I think i discover the problem.
Somehow, before reflash, my \sys\* is on read\write\execute to my user.
But actualy, i cant modify it (i can, but before restart, everything goes back to read only).
Any one knows how to change it ?
I've googled a little but..nothing..
![]() |
2010-04-21
, 21:17
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#25
|
![]() |
2010-04-21
, 21:49
|
Posts: 946 |
Thanked: 1,650 times |
Joined on Oct 2009
@ Germany
|
#26
|
![]() |
2010-04-21
, 22:25
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#27
|
/sys is a virtual file system where you cannot store files. it is just for the communication with the kernel.
changing permissions on /sys is pointless. there were no changes on /sys in the different kernels version.
I have removed the remaining occurrences of "sudo" before commands in my tutorials - it was a mistake. sudo works only with specific commands but not with echo etc.
If you really want to use "sudo" with scripts, create a script which will run as root (i.e. no sudo in the script) and put an entry in /etc/suders.d so that can run the script using
"sudo script"
![]() |
2010-04-22
, 08:00
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#28
|
I'm trying to change the value on, for exemple:
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
with this command:
sudo echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
using: queen beecon widget
![]() |
2010-04-22
, 20:43
|
Posts: 169 |
Thanked: 41 times |
Joined on Apr 2010
@ Portugal
|
#29
|
If you want to try to see which application it is be my guest.
Last edited by MohammadAG; 2010-04-20 at 13:25.