2001-02-23 10:18:56

by Mircea Ciocan

[permalink] [raw]
Subject: Buglet: Mount iso-9660 always have exec bit set (755)


For a while I'm annoyed by a buglet:

When trying to mount an ordinary CD like (as root):

mount /dev/cdrom /mnt/cdrom -o ro,noexec

it works, but all files have the execute attribute set for all users,
and that is annoying in

MidnightCommander and other filemanagers that try execute the file as a
program instead of opening it based on file asociation set.

Mount version is: mount-2.10o
kernel2.4.1ac10 but see the same behaviour on all 2.4.x kernels.

Is that something that I miss or is a small buglet in mounting isofs
???

Thank you

Mircea C.

P.S: That problem didn't arise when using 2.2.x.


2001-02-23 10:47:46

by Umbra

[permalink] [raw]
Subject: Re: Buglet: Mount iso-9660 always have exec bit set (755)

On Fri, 23 Feb 2001, Mircea Ciocan wrote:

>
> For a while I'm annoyed by a buglet:
>
> When trying to mount an ordinary CD like (as root):
>
> mount /dev/cdrom /mnt/cdrom -o ro,noexec

Try mount /dev/cdrom /mnt/cdrom -o ro,noexec,mode=0444

>
> it works, but all files have the execute attribute set for all users,
> and that is annoying in
>
> MidnightCommander and other filemanagers that try execute the file as a
> program instead of opening it based on file asociation set.
>
> Mount version is: mount-2.10o
> kernel2.4.1ac10 but see the same behaviour on all 2.4.x kernels.
>
> Is that something that I miss or is a small buglet in mounting isofs
> ???
>
> Thank you
>
> Mircea C.
>
> P.S: That problem didn't arise when using 2.2.x.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>