View Single Post
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.