|
2010-02-28
, 14:38
|
Posts: 196 |
Thanked: 54 times |
Joined on Jan 2010
@ UK
|
#192
|
#!/bin/sh #update sudoers update-sudoers
user ALL = NOPASSWD: /<path>/command
The Following 2 Users Say Thank You to fred123 For This Useful Post: | ||
|
2010-02-28
, 15:03
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#193
|
two files in debian control
postinst & postrm
create the following fileCode:#!/bin/sh #update sudoers update-sudoers
etc/sudoers.d/healthcheck.sudoers
put all the commands you need to run as root.Code:user ALL = NOPASSWD: /<path>/command
this will allow commands to be run as root when your package is installed, and stopped when package is removed.
|
2010-02-28
, 15:32
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#194
|
two files in debian control
postinst & postrm
#!/bin/sh #update sudoers update-sudoers
|
2010-02-28
, 16:48
|
Posts: 196 |
Thanked: 54 times |
Joined on Jan 2010
@ UK
|
#195
|
user ALL = NOPASSWD: /apt-get %users ALL = NOPASSWD: /sbin/reboot
user ALL = NOPASSWD: /apt-get user ALL = NOPASSWD: /sbin/reboot
The Following User Says Thank You to fred123 For This Useful Post: | ||
|
2010-02-28
, 16:55
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#196
|
|
2010-02-28
, 20:50
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#197
|
|
2010-03-06
, 06:37
|
Posts: 124 |
Thanked: 4 times |
Joined on Nov 2009
@ uk
|
#198
|
|
2010-03-07
, 08:43
|
|
Posts: 1,366 |
Thanked: 1,185 times |
Joined on Jan 2006
|
#199
|
hmmmmm need some help peoples... (no change here then!)
At the moment i read the firmware versions and return something like PR1.1 - or PR1.1.1 ....
Quite easy to do at the moment... but i will hit a snag when new firmware versions come out, as i will have to update the code, then wait the 10+ days to get it out to people.... Not much help...
A few way rounds i can think of are....
Listing the versions on my website and parsing it directly from there (not good if people dont have or want to use the internet.)
or
Giving the user the ability to download a text file with them listed in, and update when they want.
Are there any other ways people can think off? or any previous good examples?
The Following User Says Thank You to mikec For This Useful Post: | ||
|
2010-03-07
, 08:56
|
|
Posts: 3,203 |
Thanked: 1,391 times |
Joined on Nov 2009
@ Worthing, England
|
#200
|
Tags |
code, health check, n900, python |
|
I'm going to sound incredibly noobish... (Tis all in the name i say!)......
It needs to be added somehow to /etc/sudoers.d
Not sure what you mean by -
----------- Follow me on Twitter here
----------- My Photography Website and Blog is here
----------- Author of the N900 Health Check Application ----------- New Version in Extras Devel (Dec 2010 - 2.9.10)
----------- Are you on the N900 World Map? - http://pininthemap.com/maemo - masterpin: shotgun
----------- What apps do you want to see on the n900 or in MeeGo in the future? -