![]() |
Run process/program as root from the menu
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. |
Re: Run process/program as root from the menu
|
a
Quote:
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). |
Re: a
Quote:
|
Re: Run process/program as root from the menu
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
|
All times are GMT. The time now is 19:18. |
vBulletin® Version 3.8.8