The Following 4 Users Say Thank You to Andre Klapper For This Useful Post: | ||
![]() |
2010-05-10
, 11:13
|
Posts: 433 |
Thanked: 274 times |
Joined on Jan 2010
|
#32
|
![]() |
2010-05-10
, 14:45
|
Posts: 642 |
Thanked: 486 times |
Joined on Aug 2008
|
#33
|
The Following 2 Users Say Thank You to rash.m2k For This Useful Post: | ||
![]() |
2010-05-11
, 11:07
|
|
Posts: 4,365 |
Thanked: 2,467 times |
Joined on Jan 2010
@ Australia Mate
|
#34
|
![]() |
2010-05-11
, 16:51
|
|
Posts: 1,034 |
Thanked: 784 times |
Joined on Dec 2007
@ Annapolis, MD
|
#35
|
![]() |
2010-05-11
, 16:54
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#36
|
![]() |
2010-05-11
, 16:58
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#37
|
![]() |
2010-05-11
, 16:59
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#38
|
Do an MCE and make a D-Bus service! Or, more simply, just add exceptions in sudoers
![]() |
2010-05-11
, 17:06
|
|
Posts: 1,635 |
Thanked: 1,816 times |
Joined on Apr 2008
@ Manchester, England
|
#39
|
afaik, sudoers would work for echoing into sysfs (I have sudo enabled for all binaries)
The Following 2 Users Say Thank You to lcuk For This Useful Post: | ||
![]() |
2010-05-11
, 17:08
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#40
|
i think MohammadAG is a pretty cool guy
eh runs all binaries as root as doesn't afraid of anything
for normal users however I think a simpler approach would be required.
~ $ sudo echo 0 > /sys/class/i2c-adapter/i2c-2/2-0032/leds\:lp5523\:kb1/brightness -sh: cannot create /sys/class/i2c-adapter/i2c-2/2-0032/leds:lp5523:kb1/brightness: Permission denied
echo "/path/to/script.sh" | root
Basically you mark a script file as executable and then you can run it.
chmod is your friend.
maemo.org Bugmaster