Active Topics

 


Reply
Thread Tools
Posts: 13 | Thanked: 0 times | Joined on Aug 2007
#1
I'd like to be able to run processes or programs from the standard menu - but do it as root. Processes like - grsync/rsync, backup/restore, etc.

I know I can drop to xterm, sudo, and run the command from the command line that way, I'd simply like something more convenient.

I'm running the latest 2007HE firmware.
 
Tahitibob's Avatar
Posts: 118 | Thanked: 97 times | Joined on Jun 2007 @ France
#2
Hi
You should try out Kerez :
http://david.hautbois.free.fr/joomla...d=44&Itemid=43

David.
__________________
Apps : Roadrunner - Libellule - Caelia
http://david.hautbois.free.fr
 
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#3
Originally Posted by tundrwd View Post
I'd like to be able to run processes or programs from the standard menu - but do it as root. Processes like - grsync/rsync, backup/restore, etc.

I know I can drop to xterm, sudo, and run the command from the command line that way, I'd simply like something more convenient.

I'm running the latest 2007HE firmware.
You should be able to do this if you set the executable to suid root (NB: Won't work for scripts). I haven't tested this on an IT but it's standard Unix/Linux:

In xterm (once):
sudo gainroot
chown root /path/to/executable
chmod u+s /path/to/executable

After this the executable should run as root (unless it's a script).
NB:NB:NB: These kind of tricks lets you open to all kind of security problems, but should be ok unless you let someone else get access to your device (beware of networks).
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
 
Posts: 13 | Thanked: 0 times | Joined on Aug 2007
#4
Originally Posted by TA-t3 View Post
You should be able to do this if you set the executable to suid root (NB: Won't work for scripts). I haven't tested this on an IT but it's standard Unix/Linux:

In xterm (once):
sudo gainroot
chown root /path/to/executable
chmod u+s /path/to/executable

After this the executable should run as root (unless it's a script).
NB:NB:NB: These kind of tricks lets you open to all kind of security problems, but should be ok unless you let someone else get access to your device (beware of networks).
Yeah, that one I knew, and should have said I want to explicitly avoid. It's a big security risk. And being as the point of this device is to access networks, that seems to be a double "don't do this".
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#5
safer way is to modifiy /etc/sudoers (i.e. add just your script/command there) and then have your script called from menu to call sudo. See e.g. how it is done in kbdd but replace 'sudo gainroot' for something you added to /etc/sudoers
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.
 
Reply


 
Forum Jump


All times are GMT. The time now is 19:13.