On 9/2/05, Kris Van Bruwaene <[EMAIL PROTECTED]> wrote:
> michael chang wrote:
> >On 9/1/05, Kris Van Bruwaene <[EMAIL PROTECTED]> wrote:
> >>michael chang <[EMAIL PROTECTED]> schreef:
> >>>"mount -o remount,exec /home"
> >>>
> >>Bingo:
> >>[EMAIL PROTECTED]:/home/kris# mount -o remount,exec /home
> >>[EMAIL PROTECTED]:/home/kris# cat /etc/mtab | grep home
> >>/dev/hda3 /home reiserfs rw,nosuid,nodev 0 0
> >>exit
> >>[~]# ./tst
> >>Hello world
> >
> >Of course, that still doesn't answer why Knoppix is mounting a
> >reiserfs partition as noexec even when the fstab says otherwise...
> >unless you changed the fstab and then not reboot afterwards?
> >
> Of course not. All I did was add "exec" to the /home line in fstab without
> rebooting, but the "defaults" was there all the time.

IIRC, options in fstab are only read on boot, unless you're a regular
user mounting a partition with the "user"/"users" thingie...

> Another thing that puzzles me is: shouldn't "mount -o remount"
> read fstab as well?

AFAIK, no. "umount /mountpoint;mount /mountpoint" might. Logically,
you'd want to change fstab, and have the distro boot off that fstab. 
But then again, KNOPPIX is a live-cd -- this'd be painful.  Not to
mention AFAIK Knoppix autodetects partitions and creates a fstab on
boot; meaning that changes usually don't survive reboots.  Knoppix may
have modified defaults to mount noexec by default.  It might be easier
to use a different distro, installed on a HD, if possible (maybe
Ubuntu or Debian?).

Someone want to go verify and complain to the Knoppix people?  I think
the noexec thing, if enabled, is a security feature, though, and so
partitions are mounted ro/noexec/etc. by default.  Basically to
prevent idiotism, I suppose.

> >But at least that's a decent "workaround", for lack of a better wording.
> Right. Thanks again!
No problem.

-- 
~Mike
 - Just my two cents
 - No man is an island, and no man is unable.

Reply via email to