The Following User Says Thank You to Copernicus For This Useful Post: | ||
![]() |
2012-01-02
, 00:03
|
|
Posts: 528 |
Thanked: 345 times |
Joined on Aug 2010
@ MLB.AU
|
#2
|
The Following User Says Thank You to bingomion For This Useful Post: | ||
![]() |
2012-01-02
, 00:16
|
Posts: 1,100 |
Thanked: 2,797 times |
Joined on Apr 2011
@ Netherlands
|
#3
|
The Following 2 Users Say Thank You to ade For This Useful Post: | ||
![]() |
2012-01-02
, 00:48
|
|
Posts: 528 |
Thanked: 345 times |
Joined on Aug 2010
@ MLB.AU
|
#4
|
![]() |
2012-01-02
, 02:07
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#5
|
The Following User Says Thank You to Estel For This Useful Post: | ||
![]() |
2012-01-02
, 02:27
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#6
|
The Following 4 Users Say Thank You to Copernicus For This Useful Post: | ||
![]() |
2012-01-05
, 21:04
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#7
|
![]() |
2012-01-05
, 21:38
|
Posts: 1,100 |
Thanked: 2,797 times |
Joined on Apr 2011
@ Netherlands
|
#8
|
Getting closer now, but still having problems. I've finally managed to construct a debian package for my app, and I've created a couple of little scripts ("loadRX51Module" and "unloadRX51Module") that I've made suid root, that call "modprobe lirc_rx51" and "modprobe --remove lirc_rx51" respectively.
Unfortunately, when running these scripts as the user modprobe still tells me that I lack permission to load the module. If I run the scripts as root, everything works fine...
I've gotta be missing something simple here.
The Following 2 Users Say Thank You to ade For This Useful Post: | ||
![]() |
2012-01-05
, 21:38
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#9
|
The Following User Says Thank You to Estel For This Useful Post: | ||
![]() |
2012-01-05
, 22:07
|
|
Posts: 1,986 |
Thanked: 7,698 times |
Joined on Dec 2010
@ Dayton, Ohio
|
#10
|
You are not allowed to run root programs like modprobe from a suid script as user.
maybe creating entry in sudoers (just for scripts that need it explicitly), then calling them with 'sudo' inside program, would be easier approach?
You've made garage.maemo.org project?
The Following User Says Thank You to Copernicus For This Useful Post: | ||
It is easy enough to just run "modprobe lirc_rx51" as root, but I'd prefer not to force users to do that. The LIRC daemon executes the modprobe call itself when it is started, but it runs with the permissions for that, and I'd prefer not to run my app with elevated permissions. (And my app has no need for the LIRC daemon.) Perhaps it would be best to set up an upstart script to load the module?
I guess I'm asking what the best practices are for managing kernel modules.
Thanks in advance!