![]() |
2010-10-02
, 13:42
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#2
|
![]() |
2010-10-02
, 14:07
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#3
|
Add a file in /etc/sudoers.d/ (take a look at the files there, there are a lot of examples)
then execute update-sudoers in your postinst and postrm files.
After that you can just use sudo.
![]() |
2010-10-02
, 14:15
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#4
|
![]() |
2010-10-02
, 14:17
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#5
|
#!/bin/sh update-sudoers exit 0
Nokia-N900:~# cat /etc/sudoers.d/psfreedom.sudoers user ALL = NOPASSWD: /usr/sbin/psfreedom-disable-n900.sh user ALL = NOPASSWD: /usr/sbin/psfreedom-enable-n900.sh user ALL = NOPASSWD: /opt/psfreedom/resources/helpimages/modelimages.sh user ALL = NOPASSWD: /opt/psfreedom/resources/scripts/helperscript.sh
The Following User Says Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-10-02
, 14:43
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#6
|
update-sudoers
Sample .sudoers fileCode:#!/bin/sh update-sudoers exit 0
Code:Nokia-N900:~# cat /etc/sudoers.d/psfreedom.sudoers user ALL = NOPASSWD: /usr/sbin/psfreedom-disable-n900.sh user ALL = NOPASSWD: /usr/sbin/psfreedom-enable-n900.sh user ALL = NOPASSWD: /opt/psfreedom/resources/helpimages/modelimages.sh user ALL = NOPASSWD: /opt/psfreedom/resources/scripts/helperscript.sh
![]() |
2010-10-02
, 14:46
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#7
|
The Following User Says Thank You to MohammadAG For This Useful Post: | ||
![]() |
2010-10-02
, 17:20
|
Posts: 20 |
Thanked: 11 times |
Joined on Apr 2010
|
#8
|
![]() |
2010-10-02
, 18:09
|
|
Posts: 2,473 |
Thanked: 12,265 times |
Joined on Oct 2009
@ Jerusalem, PS/IL
|
#9
|
The Following User Says Thank You to MohammadAG For This Useful Post: | ||
I'm writing an app in Qt using NokiaQtSDK to make the n900 become a handsfree device.
I need to call the bluez function to change the device class but it required that my application have superuser access (root access).
What's the best way to achieve this?
Last edited by anistein; 2010-10-02 at 13:13.