![]() |
2007-10-05
, 13:15
|
Posts: 11 |
Thanked: 12 times |
Joined on Sep 2007
|
#2
|
![]() |
2009-02-15
, 18:55
|
Posts: 271 |
Thanked: 107 times |
Joined on May 2008
@ Georgia
|
#4
|
Was searching for this today, and found where they're setting the mount options.
How to change mmc mount options
Obligatory Disclaimer
This info is provided to give you choices. There is an elevated security risk in allowing programs to be run from a card that any computer that is usb-connected to the N800 can freely write to.
Prerequisites:
* Have the ability to use root command-line access (see How do I become root 2 to configure this)
* Can run a text editor as root (nano, vim, ???)
Information:
The media cards are mounted by a script called mmc-mount, which is located with the system executables. This script is responsible for the actual mount command used when mounting both the internal and external media cards. It contains a single command that sets the mount options - including the noexec flag that prevents running commands from the media card.
Steps to enable exec:
1. Open a terminal window & become root.
2. cd /usr/sbin
3. cp mmc-mount mmc-mount.orig
(so you have a back-up just in case)
4. <edit> mmc-mount
and remove the "noexec," part from the command
5. Save, exit the editor, & reboot the machine.
From now on, you will be able to run commands from both media cards, provided they are not 'suid'. It's possible to allow suid commands to run as well - but given the fact that any computer that you plug a usb cable into gets full write access to these cards, I'd be very dubious about allowing a program that can escalate privilages to be run from them!
Have fun!
I have Nokia N800 with os2007. I'd like to be able execute programs and scripts directly from a memory card. So I've changed flag noexec to exec in /etc/fstab, but when I mount card again, it is mounted with noexec flag (/etc/mtab tells it, and I can execute nothing). Is it some kind of feature, or I am doing it wrong way?