![]() |
2007-10-01
, 18:20
|
|
Posts: 118 |
Thanked: 97 times |
Joined on Jun 2007
@ France
|
#2
|
![]() |
2007-10-02
, 10:19
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#3
|
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.
![]() |
2007-10-02
, 12:48
|
Posts: 13 |
Thanked: 0 times |
Joined on Aug 2007
|
#4
|
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).
![]() |
2007-10-02
, 12:56
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#5
|
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.