Rob1n
|
2010-01-16
, 21:23
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#141
|
The Following User Says Thank You to Rob1n For This Useful Post: | ||
|
2010-01-16
, 21:37
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#142
|
|
2010-01-16
, 21:55
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#143
|
|
2010-01-16
, 22:03
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#144
|
Mine did the same thing.
Might be able to cobble something together with low permissions with setuid possibly. But would not want to do that though.
sudo gainroot echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers update-sudoers
The Following 4 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
2010-01-16
, 22:25
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#145
|
[D-BUS Service]
Name=com.misc.reboot
Exec=/usr/bin/sudo reboot
<menuitem priority="750" name="Reboot">
<icon>general_refresh</icon>
<callback service="com.misc.reboot" path="/com/misc/reboot" interface="com.misc.reboot" method="reboot" bus="session" autostart="true">
<argument type="boolean">true</argument>
</callback>
</menuitem>
The Following 4 Users Say Thank You to qwerty12 For This Useful Post: | ||
|
2010-01-16
, 22:27
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#146
|
sudo could probably be abused for this:
After that, change your reboot entry to run "sudo reboot".Code:sudo gainroot echo "user ALL = NOPASSWD: /sbin/reboot" > /etc/sudoers.d/reboot.sudoers update-sudoers
|
2010-01-16
, 22:29
|
|
Posts: 4,274 |
Thanked: 5,358 times |
Joined on Sep 2007
@ Looking at y'all and sighing
|
#147
|
The Following User Says Thank You to qwerty12 For This Useful Post: | ||
|
2010-01-16
, 22:40
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#148
|
Yep, I had it work once but then it started to do what you said. See my second method that abuses D-Bus - that worked more than once.
|
2010-01-16
, 22:44
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#149
|
The Following User Says Thank You to Schturman For This Useful Post: | ||
|
2010-01-16
, 22:52
|
Posts: 1,283 |
Thanked: 370 times |
Joined on Sep 2009
@ South Florida
|
#150
|
Yep, I had it work once but then it started to do what you said. See my second method that abuses D-Bus - that worked more than once.
Tags |
maemo mods, mods thread |
|